src/Synapse/Stdlib/DataObject.php
public function exchangeArray(array $data)
    {
        foreach ($this->object as $key => $value) {
            if (array_key_exists($key, $data)) {
                $setter = $this->getSetter($key);
                $this->$setter($data[$key]);
            }
        }

        return $this;
    }
public function exchangeArray(array $data)
    {
        foreach ($this->object as $key => $value) {
            if (array_key_exists($key, $data)) {
                $setter = $this->getSetter($key);
                $this->$setter($data[$key]);
            }
        }

        return $this;
    }
public function exchangeArray ( array $ data ) { foreach ( $ this -> object as $ key => $ value ) { if ( array_key_exists ( $ key , $ data ) ) { $ setter = $ this -> getSetter ( $ key ) ; $ this -> $ setter ( $ data [ $ key ] ) ; } } return $ this ; }
Load object data in this entity from array

@param  array  $data Entity data to be set
@return AbstractEntity
Load object data in this entity from array