Beispiel #1
0
 public function migrate($id)
 {
     $entity = \EntityDriver::get($id);
     $coder = new \Cms\Library\Helpers\Coder\EntitiesCoder();
     $coder->migrateEntity($entity, \Input::get('migration'));
     return \Redirect::route('dev.entities.database', $id);
 }
 public function onDelete($entity_attribute)
 {
     $entity = \EntityDriver::get($entity_attribute->entity_id);
     $migration = 'attributes.' . $entity_attribute->name . '.down';
     $coder = new \Cms\Library\Helpers\Coder\EntitiesCoder();
     try {
         $coder->migrateEntity($entity, $migration);
     } catch (\Exception $e) {
     }
     $coder->codeEntities();
 }
Beispiel #3
0
 public function create($id)
 {
     $entity = \EntityDriver::get($id);
     $this->layout->title = 'Create Entity Attribute';
     $this->layout->content = \View::make('dev.entities.attributes.create', compact('entity'));
 }