Пример #1
0
 public function populateByLabOrderId($labOrderId = null)
 {
     $db = Zend_Registry::get('dbAdapter');
     if ($labOrderId === null) {
         $labOrderId = $this->lab_order_id;
     }
     $sqlSelect = $db->select()->from($this->_table)->where('lab_order_id = ?', (int) $labOrderId)->limit(1);
     return parent::populateWithSql($sqlSelect->__toString());
 }