/** * @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; }
/** * @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; }
/** * @param $id * @return SubscriberModel */ public function getSubscriberWithSubscriptions($id) { $model = parent::getById($id); $this->populate($model, true); return $model; }