League\FactoryMuffin\Stores\RepositoryStore::save PHP 메소드

save() 보호된 메소드

Save our object to the db, and keep track of it.
protected save ( object $model ) : boolean
$model object The model instance.
리턴 boolean
    protected function save($model)
    {
        $method = $this->methods['save'];
        if (!method_exists($this->storage, $method) || !is_callable([$this->storage, $method])) {
            throw new SaveMethodNotFoundException(get_class($this->storage), $method);
        }
        $this->storage->{$method}($model);
        $this->flush();
        return true;
    }