21 lines
519 B
PHP
21 lines
519 B
PHP
<?php
|
|
class Application_Model_CommandesEven extends Zend_Db_Table_Abstract
|
|
{
|
|
protected $_name = 'commandes_even';
|
|
|
|
protected $_referenceMap = array(
|
|
'CommandesEven' => array(
|
|
'columns' => array('commande_id'),
|
|
'refTableClass' => 'Application_Model_Commandes',
|
|
'refColumns' => array('id'),
|
|
),
|
|
);
|
|
|
|
public function insert(array $data)
|
|
{
|
|
if (empty($data['date_added'])) {
|
|
$data['date_added'] = date('Y-m-d H:i:s');
|
|
}
|
|
return parent::insert($data);
|
|
}
|
|
} |