Ejemplo n.º 1
0
 function createVehicleDefinition()
 {
     if (is_array($this->parent_id)) {
         $vehicleFinder = new Elite_Vaf_Model_Vehicle_Finder($this->getSchema());
         $bind = $this->vehicleBind();
         if (count($vehicleFinder->findByLevelIds($bind)) == 0) {
             $this->getReadAdapter()->insert('elite_definition', $bind);
         }
     } else {
         $this->entity->createDefinition($this->parent_id);
     }
 }