public function setValueAndWakeProxy($document, $value)
    {
        if ($document instanceof Proxy && !$document->__isInitialized()) {
            //property changes to an uninitialized proxy will not be tracked or persisted,
            //so the proxy needs to be loaded first.
            $document->__load();
        }

        $this->setValue($document, $value);

        return $this;
    }
public function setValueAndWakeProxy($document, $value)
    {
        if ($document instanceof Proxy && !$document->__isInitialized()) {
            //property changes to an uninitialized proxy will not be tracked or persisted,
            //so the proxy needs to be loaded first.
            $document->__load();
        }

        $this->setValue($document, $value);

        return $this;
    }
public function setValueAndWakeProxy ( $ document , $ value ) { if ( $ document instanceof Proxy && ! $ document -> __isInitialized ( ) ) { //property changes to an uninitialized proxy will not be tracked or persisted, //so the proxy needs to be loaded first. $ document -> __load ( ) ; } $ this -> setValue ( $ document , $ value ) ; return $ this ; }
Sets this mapped attribute to the specified value on the given document,
waking the document if proxied.

@param object $document
@param mixed  $value

@return $this
Sets this mapped attribute to the specified value on the given document waking the document if proxied .