17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1249 Views |
-
Bug in DataObject

20 August 2007 at 10:07pm Last edited: 20 August 2007 10:08pm
Hi,
there is a bug in DataObject::write():
// New records have their insert into the base data table done
// first, so that they can pass the generated primary key on
// to the rest of the manipulationline 419: $baseTable = $ancestry[0];
$ancestry is not set anywhere in the method!
-
Re: Bug in DataObject

21 August 2007 at 10:06am
Hi Markus,
It seems that this is set at line 400:
foreach($this->getClassAncestry() as $ancestor) {
if(ClassInfo::hasTable($ancestor)) $ancestry[] = $ancestor;
} -
Re: Bug in DataObject

21 August 2007 at 8:01pm
Ahh right! I added the needed checks for that variable (r40621).
| 1249 Views | ||
|
Page:
1
|
Go to Top |


