Example #1
0
 /**
  * Update a document record.
  * 
  * the goiven model must have a valid value for the id property or the update will fail.
  * 
  * @param \Application\Model\Document $oDocument
  */
 public function update(Document $oDocument)
 {
     $aProperties = $oDocument->toArray();
     //No need to update the created on column for the document record.
     unset($aProperties[Document::CREATED_ON]);
     $this->oTableGateway->update($aProperties, array(Document::ID => $oDocument->getId()));
 }