public function collection(TableQueryIterator $iterator, Table $definition) : Collection
    {
        return Collection::from($iterator)
            ->map(function ($v) use ($definition) {
                return $this->entity($definition, $v);
            });
    }
public function collection(TableQueryIterator $iterator, Table $definition) : Collection
    {
        return Collection::from($iterator)
            ->map(function ($v) use ($definition) {
                return $this->entity($definition, $v);
            });
    }
public function collection ( TableQueryIterator $ iterator , Table $ definition ) : Collection { return Collection :: from ( $ iterator ) -> map ( function ( $ v ) use ( $ definition ) { return $ this -> entity ( $ definition , $ v ) ; } ) ; }
Get a collection of entities

@param TableQuery $iterator
@param Table $definition
@return Collection
Get a collection of entities