/** * Converti le Value Object en tableau compatible avec Zend_Db_Table_Row_Abstract * * @access public * @author Mathieu Desvé, <*****@*****.**> * @return array */ public function toRowArray() { $returnValue = parent::toRowArray(); $returnValue['isValid'] = $this->_isValid; $returnValue['users_id'] = $this->_user; $returnValue['addDate'] = is_null($this->addDate) ? null : $this->addDate->toString('YYYY.MM.dd HH:mm:ss'); $returnValue['setDate'] = is_null($this->setDate) ? null : $this->setDate->toString('YYYY.MM.dd HH:mm:ss'); return (array) $returnValue; }