public function populate($data) { parent::populate($data); if ($type = $this->getProperty($data, 'type')) { $this->type = $this->service()->resource('NotificationType', $type); } }
public function populate($data) { parent::populate($data); if ($type = $this->getProperty($data, 'type')) { $this->type = $this->service()->resource('NotificationType', $type); } }