Пример #1
0
 /**
  * @param $id
  * @param null $cols
  * @return \UthandoNewsletter\Model\Message
  */
 public function getById($id, $cols = null)
 {
     $model = parent::getById($id, $cols);
     $this->populate($model, true);
     return $model;
 }
Пример #2
0
 /**
  * @param int $id
  * @param null $col
  * @return array|mixed|\UthandoCommon\Model\ModelInterface
  */
 public function getById($id, $col = null)
 {
     $article = parent::getById($id, $col);
     $this->populate($article, true);
     return $article;
 }
Пример #3
0
 /**
  * @param $id
  * @return SubscriberModel
  */
 public function getSubscriberWithSubscriptions($id)
 {
     $model = parent::getById($id);
     $this->populate($model, true);
     return $model;
 }