/** * Sets $_menuContent property * @param integer $menuId */ public function setMenuContent($menuId) { if ($menuId && ($menuContent = MenuContent::findOne($menuId))) { $this->_menuContent = $menuContent; } }