Example #1
0
 /**
  * @param $name
  * @return Author
  */
 public function __get($name)
 {
     if ('author' === $name && null !== $this->author_id) {
         return Author::findByID($this->author_id);
     }
     return false;
 }