If we use this hard-coded conditions in the model but want to override
it on a case-by-case basis (e.g. in an app I'm developing 'delete'
means set a boolean field to 1 so things can be undeleted by the admin)
is that a use for bind/unbind model?
Thanks, Ian
Mikee Freedom wrote:
Hey Felipe,
hey Ian,
I think so yes. I'm still getting my head around the proper use of the
bind / unbind methods myself but that could be a use for it i'm sure.
cheers,
freedom
On 03/09/06, ianh [EMAIL PROTECTED] wrote:
If we use this hard-coded conditions in the model but want to override
it on a
Hey Felipe,
If I understand you correctly, whenever you retrieve data about a
MailList Model you would like to only grab the Active Email Models
along with it.
I think it is possible in defining your HABTM relationship to set
conditions such as:
status = 'Active'
i.e. var $hasAndBelongsToMany
Hi all,
I have the following model objects:
MailList hasManyAndBelongsTo Email
The Email object has an active boolean attribute. In the page that
shows the details of a MailList and wanted to list only the active
Emails of that MailList.
If I use MailList::read(null, $id), then I get all