Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Can't Fix
-
Affects Version/s: 1.2.0, 1.2.1
-
Fix Version/s: None
-
Component/s: Record
-
Labels:None
Description
Doctrine_Table::__constructor() executes $this->initIdentifier() first and $this->record->setUp() after.
This leads to the incorrect identifier initialization in cases when identifier is defined in a behavioural template.
In the same time, Doctrine_Record_Generator::initialize() does these operations in reverse order:
176 $this->setTableDefinition(); 177 $this->setUp(); ... 183 $this->_table->initIdentifier();
For me personally, it results in the following message:
Warning: Illegal offset type in /net/eugene.dev/data/ethel/apps/external-doctrine1/1.2/lib/Doctrine/Record.php on line 1892
Attached test case.