LMongo\Eloquent\Model::setRawAttributes PHP Méthode

setRawAttributes() public méthode

Set the array of model attributes. No checking is done.
public setRawAttributes ( array $attributes, boolean $sync = false ) : void
$attributes array
$sync boolean
Résultat void
    public function setRawAttributes(array $attributes, $sync = false)
    {
        $this->attributes = $attributes;
        if ($sync) {
            $this->syncOriginal();
        }
    }
Model