[tags]doctrine, php, symfony, sfDoctrine, database,errors[/tags]
I tend to have models with a field called state
. Doctrine offers a few ways of getting to the state
field:
$obj->get('state');
$obj['state'];
$obj->getState()
however conflicts with Doctrine_Record::getState()
from which all objects inherit. Use one of the above alternatives.