From dbdada902c4d7f08cdb4255ff10e101e0738bfe0 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 27 Jul 2013 23:47:41 +0300 Subject: [PATCH] hot fix --- ipf/orm/template.php | 2 +- ipf/orm/template/owned.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', -- 2.49.0