Plugins: bake models

Hello,

I’m new to cakephp plugins and trying to create my first one that I would like to share over 3 cake projects. This plugin depends on database-tables. Some need to exists (like users and groups), some should be installed (via migrations) by the plugin.

My question is: When I have tables like pluginname_articles, pluginname_categories, could these models/controllers be baked in scope of the plugin with all relations? The prefix may be a problem, right?

Can somebody give me some advice how to bake models with their relations within/for a plugin?

Thanks.

1 Like