1
0
mirror of synced 2025-01-18 22:41:43 +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)) {
$related = $this->getTable()->create();
} else {
if ( ! ($related = $this->getTable()->find($id))) {
$related = $this->getTable()->find($id);
if ( ! $related) {
$related = $this->getTable()->create();
}
}