static function create($levels) { $schema = new VF_Schema(); $schema->getReadAdapter()->insert('elite_schema', array('key' => 'levels', 'value' => $levels)); $schema->setId($schema->getReadAdapter()->lastInsertId()); $schemaGenerator = new VF_Schema_Generator(); $schemaGenerator->execute(explode(',', $levels), false, $schema->id()); return $schema; }
static function create($levels) { $schema = new VF_Schema; $schema->getReadAdapter()->insert('elite_schema', array( 'key'=>'levels', 'value'=>$levels )); $schema->setId($schema->getReadAdapter()->lastInsertId()); return $schema; }