Try overriding getStatus in your content class:
This should work - but it will probably be a bit slow. You don't want to query the database every time, so it would be best to write yourself a service / static helper that gets the published status at startup (remember there can be more than one public status, and it may not be called "published"), and stores it so that the domain class getStatus can just read that value later.
This message was edited 1 time. Last update was at 27/07/2010 16:33:58
|