Ticket #1751 (closed defect: fixed)
[PATCH] multiple Doctrine_Record_Filter_Compound not working as expected
| Reported by: | caefer | Owned by: | romanb |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.0.6 |
| Component: | Record | Version: | 1.1-DEV |
| Severity: | Keywords: | ||
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description
I am building a model that is using two more models as compounds.
public function setUp()
{
//...
$this->getInvoker()->unshiftFilter(new Doctrine_Record_Filter_Compound(array('FirstModel')));
$this->getInvoker()->unshiftFilter(new Doctrine_Record_Filter_Compound(array('SecondModel')));
}
Now I can call
echo $myModel->fieldOnFirstModel;
instead of
echo $myModel->FirstModel->fieldOnFirstModel;
But calling
echo $myModel->fieldOnSecondModel;
Will return NULL no matter what the actual value is.
If I remove the first unshiftFilter()
The same call will return the equivalent to
echo $myModel->SecondModel->fieldOnSecondModel;
Attachments
Change History
Note: See
TracTickets for help on using
tickets.