From: Andrey Kutejko Date: Sat, 27 Jul 2013 20:47:41 +0000 (+0300) Subject: hot fix X-Git-Tag: 0.6~51 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=06aacf1a81cb676a551bd933edd3b70c6cf2d9ae;p=ipf-legacy-orm.git hot fix --- diff --git a/ipf/orm/template.php b/ipf/orm/template.php index 9339498..376a859 100644 --- a/ipf/orm/template.php +++ b/ipf/orm/template.php @@ -14,6 +14,6 @@ abstract class IPF_ORM_Template return $this->_invoker; } - abstract public function setTableDefinition(IPF_ORM_Table $table) + abstract public function setTableDefinition(IPF_ORM_Table $table); } diff --git a/ipf/orm/template/owned.php b/ipf/orm/template/owned.php index 7b7e69d..9d1822b 100644 --- a/ipf/orm/template/owned.php +++ b/ipf/orm/template/owned.php @@ -32,7 +32,7 @@ class IPF_ORM_Template_Owned extends IPF_ORM_Template 'exclude' => $this->exclude, 'verbose' => $this->verbose, )); - $this->hasOne('User as '.$this->name, array( + $table->hasOne('User', $this->name, array( 'local' => $this->columnName, 'exclude' => $this->exclude, 'foreign' => 'id',