1
0
mirror of synced 2025-01-19 06:51:40 +03:00
This commit is contained in:
zYne 2007-05-24 19:29:27 +00:00
parent 54fcf19fdc
commit bf263fe1b3

View File

@ -48,7 +48,9 @@ class Doctrine_Relation_LocalKey extends Doctrine_Relation
if (empty($id)) { if (empty($id)) {
$related = $this->getTable()->create(); $related = $this->getTable()->create();
} else { } else {
if ( ! ($related = $this->getTable()->find($id))) { $related = $this->getTable()->find($id);
if ( ! $related) {
$related = $this->getTable()->create(); $related = $this->getTable()->create();
} }
} }