Skip to content

Conversation

@CodeBlastr
Copy link
Contributor

I had to dig through a bunch of cakedc plugins to try and find why my validation rules weren't being respected. I think it will help other people to know that TableRegistry::get() works if you use the right convention for a table name, but that it won't find your plugin rules if you don't specify the correct path to the ArticlesTable.php file.

I had to dig through a bunch of cakedc plugins to try and find why my validation rules weren't being respected.  I think it will help other people to know that TableRegistry::get() works if you use the right convention for a table name, but that it won't find your plugin rules if you don't specify the correct path to the ArticlesTable.php file.

$articlesTable = TableRegistry::get('PluginName.Articles');
Composer installed plugin example (same as above except)::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the term is vendor name prefixed plugin.

Instead of UserName used the proper terminology VendorName.
@CodeBlastr
Copy link
Contributor Author

Updated as per suggestion.

@markstory markstory added this to the 3.x milestone Mar 3, 2016
@markstory markstory self-assigned this Mar 3, 2016
markstory added a commit that referenced this pull request Mar 3, 2016
give more TableRegistry::get() examples
@markstory markstory merged commit 2365fd1 into cakephp:3.0 Mar 3, 2016
markstory added a commit that referenced this pull request Mar 3, 2016
Put the table registry docs together.

Refs #3787
cake17 added a commit that referenced this pull request Mar 4, 2016
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

Successfully merging this pull request may close these issues.

3 participants