Log message #4099344

# At Username Text
# Nov 29th 2017, 15:55 dereuromark you can also help updating the wiki there with more tips
# Nov 29th 2017, 15:54 dereuromark its called Shim plugin :slightly_smiling_face:
# Nov 29th 2017, 15:40 neothermic I'm unsure getting baked... oh, wait.. ;)
# Nov 29th 2017, 15:39 hmic neothermic: just bake all and see is what i started with once upon a time...
# Nov 29th 2017, 15:26 neothermic Things like `A Model is now a Table.`, `you define your relationships in an initialize function`, etc :P
# Nov 29th 2017, 15:24 neothermic I don't suppose there's a "Cake 3 for Cake 2 developers" cheetsheet anywhere? I've found http://cake3.codaxis.com/ but I'm pondering if there's anything slightly more "You did X in 2, you do Y in 3"
# Nov 29th 2017, 14:29 admad @yourikoeman there are no formal rules, just ask about whatever you need help with :slightly_smiling_face:
# Nov 29th 2017, 14:07 yourikoeman hey guys im new here, where can i find the discussion rules etc?
# Nov 29th 2017, 13:25 birdy247 https://gist.github.com/birdy247/3c121c16e86c779101c2080f8853aad3
# Nov 29th 2017, 13:24 birdy247 Ill jist
# Nov 29th 2017, 13:24 birdy247 use slack :) .... jokes
# Nov 29th 2017, 13:24 birdy247 oh right, you mean the snippet
# Nov 29th 2017, 13:24 hmic how do i access that?
# Nov 29th 2017, 13:24 birdy247 Why?
# Nov 29th 2017, 13:23 hmic birdy247: fail!
# Nov 29th 2017, 13:23 birdy247 File uploaded https://cakesf.slack.com/files/U0T295QA3/F86D4CEMN/-.php / https://slack-files.com/T053DPNCM-F86D4CEMN-19077c1b38
# Nov 29th 2017, 13:22 admad the class that is
# Nov 29th 2017, 13:22 admad show your Permissions table
# Nov 29th 2017, 13:22 birdy247 if i use permissiongroups it works instead of PermissionGroups
# Nov 29th 2017, 13:21 admad maybe cause there isn't any?
# Nov 29th 2017, 13:21 birdy247 @admad I tried that and no permission-groups are returned
# Nov 29th 2017, 13:20 hmic :~
# Nov 29th 2017, 13:20 hmic whats what i said @admad, then check if you got the correct table instance - because...
# Nov 29th 2017, 13:19 hmic actually the table is a beast, the entity just an easy and lightweight data object ;-)
# Nov 29th 2017, 13:19 admad @birdy247 TableRegistry::get('PermissionsManager.Permissions')->get($entity->id, ['contain' => ['PermissionGroups']]);
# Nov 29th 2017, 13:18 hmic completely different beasts
# Nov 29th 2017, 13:18 hmic obinoob, they don't.
# Nov 29th 2017, 13:18 hmic so you set it up that way yourself ?!
# Nov 29th 2017, 13:18 obinoob hmic: ok so a table object has nothing in common with an entity I get that since they are two different structures guess internals are different I deeply though they share some common class etc
# Nov 29th 2017, 13:17 hmic i'd maybe try find() with the fluid syntax instead of get() too, because it has way more options to work on
# Nov 29th 2017, 13:17 birdy247 but debugging the Permissions table, shows the association in lowercase
# Nov 29th 2017, 13:17 hmic maybe you make sure you have the correct table object first and the association is available there
# Nov 29th 2017, 13:17 birdy247 I thought what you suggested
# Nov 29th 2017, 13:16 birdy247 I am curiours as to why it works with lower case
# Nov 29th 2017, 13:16 hmic birdy247: it's just a suggestion. sorry if it does not apply to your problem at hand...
# Nov 29th 2017, 13:16 birdy247 it then says its not associated with the plugin
# Nov 29th 2017, 13:15 birdy247 hmic that doesnt work
# Nov 29th 2017, 13:15 hmic now you have the table object - which still has nothing in common with an entity object
# Nov 29th 2017, 13:15 hmic and it gives you the table object back you ask for
# Nov 29th 2017, 13:14 hmic the registry holds your table objects, like its name suggests
# Nov 29th 2017, 13:14 hmic this is it's job!