Mongolid\ActiveRecord::getDataMapperInstance PHP Method

getDataMapperInstance() private static method

Returns the a valid instance from Ioc.
private static getDataMapperInstance ( ) : mixed
return mixed
    private static function getDataMapperInstance()
    {
        $instance = Ioc::make(get_called_class());
        if (!$instance->getCollectionName()) {
            throw new NoCollectionNameException();
        }
        return $instance->getDataMapper();
    }