protected function addToPersistence($model, $defaults = []) : Model
    {
        if (!$model->persistence && $p = $this->getDefaultPersistence($model)) {
            $p->add($model, $defaults);
        }

        return $model;
    }
protected function addToPersistence($model, $defaults = []) : Model
    {
        if (!$model->persistence && $p = $this->getDefaultPersistence($model)) {
            $p->add($model, $defaults);
        }

        return $model;
    }
protected function addToPersistence ( $ model , $ defaults = [ ] ) : Model { if ( ! $ model -> persistence && $ p = $ this -> getDefaultPersistence ( $ model ) ) { $ p -> add ( $ model , $ defaults ) ; } return $ model ; }
Adds model to persistence.

@param Model $model
@param array $defaults

@return Model
Adds model to persistence .