src/CRUDlex/AbstractData.php
protected function hydrate(array $row)
    {
        $fieldNames = $this->definition->getFieldNames(true);
        $entity     = new Entity($this->definition);
        foreach ($fieldNames as $fieldName) {
            $entity->set($fieldName, $row[$fieldName]);
        }
        return $entity;
    }
protected function hydrate(array $row)
    {
        $fieldNames = $this->definition->getFieldNames(true);
        $entity     = new Entity($this->definition);
        foreach ($fieldNames as $fieldName) {
            $entity->set($fieldName, $row[$fieldName]);
        }
        return $entity;
    }
protected function hydrate ( array $ row ) { $ fieldNames = $ this -> definition -> getFieldNames ( true ) ; $ entity = new Entity ( $ this -> definition ) ; foreach ( $ fieldNames as $ fieldName ) { $ entity -> set ( $ fieldName , $ row [ $ fieldName ] ) ; } return $ entity ; }
Creates an Entity from the raw data array with the field name
as keys and field values as values.

@param array $row
the array with the raw data

@return Entity
the entity containing the array data then
Creates an Entity from the raw data array with the field name as keys and field values as values .