webservice/application/models/CommandesEven.php

21 lines
519 B
PHP
Raw Normal View History

2010-10-26 13:21:15 +00:00
<?php
class Application_Model_CommandesEven extends Zend_Db_Table_Abstract
{
protected $_name = 'commandes_even';
protected $_referenceMap = array(
'CommandesEven' => array(
'columns' => array('commande_id'),
2010-10-27 09:31:17 +00:00
'refTableClass' => 'Application_Model_Commandes',
'refColumns' => array('id'),
),
2010-10-26 13:21:15 +00:00
);
public function insert(array $data)
{
if (empty($data['date_added'])) {
$data['date_added'] = date('Y-m-d H:i:s');
}
return parent::insert($data);
}
}