Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown repository type "Mongo". Make sure you register a type before trying to use it. #3

Open
benoitkopp opened this issue Oct 17, 2017 · 2 comments

Comments

@benoitkopp
Copy link

Unknown repository type "Mongo". Make sure you register a type before trying to use it.

When i try to add an article.

Coming from this function in the controller:

public function beforeFilter(Event $event)
{
parent::beforeFilter($event);
// Load the Collection using the 'Mongo' provider.
$this->loadModel('Articles', 'Mongo');
}

@gaganxicom
Copy link

I am getting same error .

@benoitkopp
Copy link
Author

Be sure you have Plugin::load('Dilab/CakeMongo', ['bootstrap' => true]); in your config/bootstrap.php file

Repository owner deleted a comment Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants