Exemplo n.º 1
0
 /**
  * Create a fake model instance and save it in the database
  * 
  * @param string $class 
  * @return object
  */
 public function create($class)
 {
     $blueprint = $this->makeBlueprint($class);
     // make and save model
     $model = $this->makeFromBlueprint($blueprint);
     // movel to model
     $model = $this->model->saveModel($model, $blueprint);
     return $model;
 }