Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function boot()
 {
     parent::boot();
     foreach ($this->collection as $uploadPref) {
         $this->uploadPrefsById[$uploadPref->id] = $uploadPref;
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function boot()
 {
     if (is_null($this->collection)) {
         parent::boot();
         foreach ($this->collection as $field) {
             $this->fieldsByName[$field->field_name] = $field;
             $this->fieldsById[$field->field_id] = $field;
         }
     }
 }
Example #3
0
 /**
  * {@inheritdoc}
  *
  * @param \rsanchez\Deep\Model\Site $model
  */
 public function __construct(Site $model)
 {
     parent::__construct($model);
 }