public function toDatamapperObject()
    {
        $entities = new DatamapperCollection;

        foreach ($this->items as $name => $item) {
            $entities->put($name, $item->toDatamapperObject());
        }

        return $entities;
    }
public function toDatamapperObject()
    {
        $entities = new DatamapperCollection;

        foreach ($this->items as $name => $item) {
            $entities->put($name, $item->toDatamapperObject());
        }

        return $entities;
    }
public function toDatamapperObject ( ) { $ entities = new DatamapperCollection ; foreach ( $ this -> items as $ name => $ item ) { $ entities -> put ( $ name , $ item -> toDatamapperObject ( ) ) ; } return $ entities ; }
Convert models to entity objects.

@return \ProAI\Datamapper\Support\Collection
Convert models to entity objects .