public function createFromArray(array $row)
    {
        $entities = $this->unitOfWork->getEntityRegistry()->getEntityBuilder()->castToEntity([$row], $this->className);

        return array_shift($entities);
    }
public function createFromArray(array $row)
    {
        $entities = $this->unitOfWork->getEntityRegistry()->getEntityBuilder()->castToEntity([$row], $this->className);

        return array_shift($entities);
    }
public function createFromArray ( array $ row ) { $ entities = $ this -> unitOfWork -> getEntityRegistry ( ) -> getEntityBuilder ( ) -> castToEntity ( [ $ row ] , $ this -> className ) ; return array_shift ( $ entities ) ; }
Create a new entity

@param   array $row A hash with the properties for the new entity

@return  object
Create a new entity