[Solar-talk] new model: setRelatedPropertie()
Rodrigo Moraes
rodrigo.moraes at gmail.com
Fri Mar 16 10:31:05 PDT 2007
Hi,
I was trying to do something with the nde model class and couldn't find
another way than setting a related propertie on the fly.
public function setRelatedPropertie($name, $propertie, $value)
{
$this->_related[$name][$propertie] = $value;
}
What for? It's used when I need to set the related model properties in a
result, like:
$res = $this->fetchOne($params);
$res->setRelatedPropertie('games', 'where', array(
'title LIKE ?' => '%' . $keywords . '%',
));
It seems to have many better uses than the above, so perhaps I missed
another way to do this?
rodrigo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.killersoft.com/pipermail/solar-talk/attachments/20070316/220ab408/attachment.htm
More information about the solar-talk
mailing list