1
0
mirror of synced 2024-12-13 14:56:01 +03:00
This commit is contained in:
zYne 2007-08-13 22:01:27 +00:00
parent 46154c5682
commit 635f1a9c8f

View File

@ -837,14 +837,14 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
$lower = strtolower($name);
$lower = $this->_table->getColumnName($lower);
$type = $this->_table->getTypeOf($name);
if (isset($this->_data[$lower])) {
if ($value instanceof Doctrine_Record && $type != 'object') {
if ($value instanceof Doctrine_Record) {
$type = $this->_table->getTypeOf($name);
$id = $value->getIncremented();
if ($id !== null) {
if ($id !== null && $type !== 'object') {
$value = $id;
}
}