Commit bf263fe1 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 54fcf19f
......@@ -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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment