/**
  * Fetchs records using the variable values specified in epObject
  * @param epObject $o
  * @param epClassMap
  * @return bool
  */
 public function insert($cm, $o)
 {
     // check if class is abstract
     if ($cm->isAbstract()) {
         throw new epExceptionDbObject('Class [' . $cm->getName() . '] is abstract');
         return false;
     }
     // make sure the table is created
     if (!$this->create($cm, false)) {
         return false;
     }
     // update table for last insertion
     $this->table_last_inserted = $cm->getTable();
     // preapre sql statement
     if (!($sql = epObj2Sql::sqlInsert($this, $cm, $o))) {
         return false;
     }
     // execute sql
     return $r = $this->_execute($sql);
 }
 /**
  * Fetchs records using the variable values specified in epObject
  * @param epObject $o
  * @param epClassMap
  * @return bool
  */
 public function insert($cm, $o)
 {
     // make sure the table is created
     if (!$this->create($cm, false)) {
         return false;
     }
     // update table for last insertion
     $this->table_last_inserted = $cm->getTable();
     // preapre sql statement
     if (!($sql = epObj2Sql::sqlInsert($this, $cm, $o))) {
         return false;
     }
     // execute sql
     return $r = $this->_execute($sql);
 }