public function assignRequest(Request $request)
    {
        $extracted = $this->extractData($request);

        if (count($extracted)) {
            foreach ($this->getAttributeNames() as $key) {
                if (array_key_exists($key, $extracted)) {
                    $this->{$key} = $extracted[$key];
                }
            }
            return true;
        }

        return false;
    }
public function assignRequest(Request $request)
    {
        $extracted = $this->extractData($request);

        if (count($extracted)) {
            foreach ($this->getAttributeNames() as $key) {
                if (array_key_exists($key, $extracted)) {
                    $this->{$key} = $extracted[$key];
                }
            }
            return true;
        }

        return false;
    }
public function assignRequest ( Request $ request ) { $ extracted = $ this -> extractData ( $ request ) ; if ( count ( $ extracted ) ) { foreach ( $ this -> getAttributeNames ( ) as $ key ) { if ( array_key_exists ( $ key , $ extracted ) ) { $ this -> { $ key } = $ extracted [ $ key ] ; } } return true ; } return false ; }
Assigns the entity data that may be found in the request
to this entity.
@param  Request $request
@return bool True when entity data was found.
Assigns the entity data that may be found in the request to this entity .