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

3.0 Bake not using correct model for plugin #4007

Closed
SplicePHP opened this issue Jul 17, 2014 · 3 comments
Closed

3.0 Bake not using correct model for plugin #4007

SplicePHP opened this issue Jul 17, 2014 · 3 comments

Comments

@SplicePHP
Copy link
Contributor

When baking views for plugins the models are loaded from the App model instead of the plugin model. No relations are thus detected when creating plugin views. I could not find any way to set an override for the model used for the views being created.

@dereuromark dereuromark added this to the 3.0.0 milestone Jul 17, 2014
@markstory
Copy link
Member

How are you running bake?

@markstory
Copy link
Member

I was able to reproduce this using Console/cake bake view --plugin Photos Photos.

markstory added a commit that referenced this issue Jul 18, 2014
When baking plugin views we need to use the correct aliases or things
don't work very well.

Refs #4007
@markstory
Copy link
Member

Closing as there is a pull request now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants