DirectorObjectForm: pass db to object if no such
This commit is contained in:
parent
38501e8e96
commit
a8b2eeeaf7
|
@ -20,6 +20,9 @@ abstract class DirectorObjectForm extends QuickForm
|
|||
$class = $this->getObjectClassname();
|
||||
$this->object = $class::create($values, $this->db);
|
||||
} else {
|
||||
if (! $this->object->hasConnection()) {
|
||||
$this->object->setConnection($this->db);
|
||||
}
|
||||
$this->object->setProperties($values);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue