Ejemplo n.º 1
0
 public function getDetailsByOpId($opId)
 {
     $table = $this->getDbTable();
     $select = $table->select();
     $select->setIntegrityCheck(false);
     $select->from(array('ope' => 'operations'), array('id', 'client_id', 'bank_account_id', 'date', 'ac_date', 'state_change', 'client_id'));
     $select->where('ope.id = ?', $opId);
     $row = $table->fetchRow($select);
     if ($row) {
         $op = new Gyuser_Model_Operations();
         $op->setId($opId);
         $op->setClient_id($row->client_id);
         $op->setBank_account_id($row->bank_account_id);
         $op->setAc_date($row->ac_date);
         return $op;
     } else {
         return null;
     }
 }