Mongolid\ActiveRecord::getDataMapper PHP Method

getDataMapper() public method

Returns a DataMapper configured with the Schema and collection described in this entity.
public getDataMapper ( ) : DataMapper
return Mongolid\DataMapper\DataMapper
    public function getDataMapper()
    {
        $dataMapper = Ioc::make(DataMapper::class);
        $dataMapper->setSchema($this->getSchema());
        return $dataMapper;
    }