public function getIterator()
    {
        $els = parent::getIterator();

        return new CallbackFilterIterator($els, function (&$current) {
                /** @var EntityProxy $current */
                $current = $current->getProxy();

                return true;
            }
        );
    }
public function getIterator()
    {
        $els = parent::getIterator();

        return new CallbackFilterIterator($els, function (&$current) {
                /** @var EntityProxy $current */
                $current = $current->getProxy();

                return true;
            }
        );
    }
public function getIterator ( ) { $ els = parent :: getIterator ( ) ; return new CallbackFilterIterator ( $ els , function ( & $ current ) { /** @var EntityProxy $current */ $ current = $ current -> getProxy ( ) ; return true ; } ) ; }
This overrides the base getIterator method and on access swaps out the EntityProxy objects
for real entities.

@return CallbackFilterIterator
This overrides the base getIterator method and on access swaps out the EntityProxy objects for real entities .