public function toArray() { $selfArray = parent::toArray(); $selfArray = array_merge($selfArray, array('objetivos' => $this->getObjetivos(), 'conteudoProposto' => $this->getConteudoProposto(), 'tempoDuracaoMax' => $this->getTempoDuracaoMax(), 'mediaQualidade' => $this->getMediaQualidade(), 'mediaDificuldade' => $this->getMediaDificuldade(), 'criador' => $this->getCriador()->toArray(), 'imagem' => $this->getImagem()->toArray(), 'configuracao' => $this->getConfiguracao()->toArray())); return $selfArray; }
public function toArray() { $selfArray = parent::toArray(); $selfArray = array_merge($selfArray, array('criador' => empty($this->_criador) ? null : $this->getCriador()->toArray(), 'cursoCriado' => empty($this->_cursoCriado) ? null : $this->getCriador()->toArray(), 'votos' => $this->getVotos())); return $selfArray; }