protected function map($dataRow)
    {
        $data = $this->getData($dataRow);
        $pmk = $this->getParentPrimaryKey();
        $entity = (isset($data[$pmk]) && $data[$pmk])
            ? $this->getParentEntityMapper()->createFrom($data)
            : null;
        return null == $entity ? null : $this->registerEntity($entity);
    }
protected function map($dataRow)
    {
        $data = $this->getData($dataRow);
        $pmk = $this->getParentPrimaryKey();
        $entity = (isset($data[$pmk]) && $data[$pmk])
            ? $this->getParentEntityMapper()->createFrom($data)
            : null;
        return null == $entity ? null : $this->registerEntity($entity);
    }
protected function map ( $ dataRow ) { $ data = $ this -> getData ( $ dataRow ) ; $ pmk = $ this -> getParentPrimaryKey ( ) ; $ entity = ( isset ( $ data [ $ pmk ] ) && $ data [ $ pmk ] ) ? $ this -> getParentEntityMapper ( ) -> createFrom ( $ data ) : null ; return null == $ entity ? null : $ this -> registerEntity ( $ entity ) ; }
Creates and maps related entity

@param array $dataRow

@return null|EntityCollection|EntityInterface|EntityInterface[]
Creates and maps related entity