コード例 #1
0
 function getByOrderNumber($number)
 {
     $query = 'SELECT `obj`.* FROM `' . $this->_table->getTableName() . '` AS `obj` ';
     $query .= 'WHERE `obj`.`order_number` = ' . (int) $number;
     $this->_db->setQuery($query);
     if ($object =& $this->_db->loadObject()) {
         $this->_table->bind($object);
         return $this->_table;
     }
     return parent::getObject();
 }