Mongolid\ActiveRecord::getDataMapper PHP 메소드

getDataMapper() 공개 메소드

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