protected function fetchCollection(Select $select)
    {
        $collection = [];

        /** @var EntityInterface $entity */
        foreach ($this->selectWith($select) as $entity) {
            $collection[$entity->getIdentifier()] = $entity;
        }

        return $collection;
    }
protected function fetchCollection(Select $select)
    {
        $collection = [];

        /** @var EntityInterface $entity */
        foreach ($this->selectWith($select) as $entity) {
            $collection[$entity->getIdentifier()] = $entity;
        }

        return $collection;
    }
protected function fetchCollection ( Select $ select ) { $ collection = [ ] ; /** @var EntityInterface $entity */ foreach ( $ this -> selectWith ( $ select ) as $ entity ) { $ collection [ $ entity -> getIdentifier ( ) ] = $ entity ; } return $ collection ; }
Fetch array collection of entities

@param Select $select

@return array
Fetch array collection of entities