batch/library/Application/Model/AssoActes.php
2014-08-04 14:45:48 +00:00

17 lines
368 B
PHP

<?php
class Application_Model_AssoActes extends Zend_Db_Table_Abstract
{
protected $_name = 'asso_actes';
protected $_schema = 'jo';
public function insert(array $data)
{
// Ajout d'un timestamp
if (empty($data['dateInsert'])) {
$data['dateInsert'] = date('Y-m-d H:i:s');
}
return parent::insert($data);
}
}