Esempio n. 1
0
 public function import(Identifiable $object)
 {
     return $this->inject(OSQL::insert(), $object);
 }
 /**
  * @return InsertQuery
  **/
 protected function makeInsertQuery($childId)
 {
     $uc = $this->container;
     return OSQL::insert()->into($uc->getHelperTable())->set($uc->getParentIdField(), $uc->getParentObject()->getId())->set($uc->getChildIdField(), $childId);
 }