public function createObject() { $obj = new Study(); $obj->setName('prueba'); $obj->save(); return $obj; }