예제 #1
0
파일: LinkOne.php 프로젝트: harp-orm/core
 /**
  * @return AbstractRelOne
  */
 public function getRel()
 {
     return parent::getRel();
 }
예제 #2
0
파일: Links.php 프로젝트: harp-orm/core
 /**
  * @param  AbstractLink $link
  * @return Links        $this
  */
 public function add(AbstractLink $link)
 {
     $name = $link->getRel()->getName();
     $this->items[$name] = $link;
     return $this;
 }