コード例 #1
0
ファイル: RecordEntity.php プロジェクト: jwdeitch/components
 /**
  * Direct access to relation by it's name.
  *
  * @see relation()
  * @param string $method
  * @param array  $arguments
  * @return RelationInterface|mixed|AccessorInterface
  */
 public function __call($method, array $arguments)
 {
     if (isset($this->ormSchema[ORM::M_RELATIONS][$method])) {
         return $this->relation($method);
     }
     //See FIELD_FORMAT constant
     return parent::__call($method, $arguments);
 }