final public function saveObject(Model $object)
    {
        $this->onObjectSaved($object);

        if ($object->getUniqueIdentifier() === null) {
            throw new ModelException("The object could not be saved as it has no unique identifier.", $object);
        }

        $this->cacheObjectData($object);
    }
final public function saveObject(Model $object)
    {
        $this->onObjectSaved($object);

        if ($object->getUniqueIdentifier() === null) {
            throw new ModelException("The object could not be saved as it has no unique identifier.", $object);
        }

        $this->cacheObjectData($object);
    }
final public function saveObject ( Model $ object ) { $ this -> onObjectSaved ( $ object ) ; if ( $ object -> getUniqueIdentifier ( ) === null ) { throw new ModelException ( "The object could not be saved as it has no unique identifier." , $ object ) ; } $ this -> cacheObjectData ( $ object ) ; }
save the data object.

In the base implementation the object is only cached, however this function also
calls onObjectSaved() to allow extenders to store the object permanently in a
back end data store.

@see    Repository::onObjectSaved()
@throws ModelException When the object has no unique identifier.
@param  \Rhubarb\Stem\Models\Model $object
save the data object .