src/MultiTierArchitecture/Mapper/Definition/EntityMapperAbstract.php
public function getMappedSecondEntitiesByEntityType($secondEntityName)
    {
        $secondEntities = [];
        foreach ($this->data as $data) {
            $secondEntity = $this->createAndReturnNewSecondEntity($data, $secondEntityName);
            if ($secondEntity) {
                $secondEntities[] = $secondEntity;
            }
        }

        return $secondEntities;
    }
public function getMappedSecondEntitiesByEntityType($secondEntityName)
    {
        $secondEntities = [];
        foreach ($this->data as $data) {
            $secondEntity = $this->createAndReturnNewSecondEntity($data, $secondEntityName);
            if ($secondEntity) {
                $secondEntities[] = $secondEntity;
            }
        }

        return $secondEntities;
    }
public function getMappedSecondEntitiesByEntityType ( $ secondEntityName ) { $ secondEntities = [ ] ; foreach ( $ this -> data as $ data ) { $ secondEntity = $ this -> createAndReturnNewSecondEntity ( $ data , $ secondEntityName ) ; if ( $ secondEntity ) { $ secondEntities [ ] = $ secondEntity ; } } return $ secondEntities ; }
Get second entities for the passed argument that represents the name of the second entity

@param string  $secondEntityName  Second entity name

@return array Array of entities
Get second entities for the passed argument that represents the name of the second entity