]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
hot fix
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Jul 2013 20:47:41 +0000 (23:47 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Jul 2013 20:47:41 +0000 (23:47 +0300)
ipf/orm/template.php
ipf/orm/template/owned.php

index 93394985c660af34eccb3a5a4bd806b6abc769d3..376a859f7982bbe1a234cebb85214a40d6ac9366 100644 (file)
@@ -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);
 }
 
index 7b7e69d757245ededd0f16194af682fb22fb78e6..9d1822be7fbbdea6602943f8d9a20cc2ad67e01e 100644 (file)
@@ -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',