public function save($data) { $data['user_id'] = $this->_userIdentity->id; $userProfile = $this->get(); if (!$userProfile) { //Se o profile não existe, será criado $userProfile = new Nidorx_Model_Vo_User_Profile($data); } else { // O profile já existe, será populado apenas $userProfile->populate($data); } return $this->_daoUserProfile->save($userProfile); }