This commit is contained in:
parent
54fcf19fdc
commit
bf263fe1b3
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user