batch/application/models/JoLiensRef.php

16 lines
367 B
PHP
Raw Normal View History

2013-07-17 09:53:33 +00:00
<?php
class Application_Model_JoLiensRef extends Zend_Db_Table_Abstract
{
protected $_name = 'liensRef';
protected $_schema = 'jo';
public function insert(array $data)
{
// Ajout d'un timestamp
if (empty($data['dateInsert'])) {
$data['dateInsert'] = date('YmdHis');
}
return parent::insert($data);
}
}