Log message #4099348

# At Username Text
# Nov 29th 2017, 16:00 neothermic @dereuromark well, my first strike into 3.x might be a new thing, so I can start afresh without worry about upgrading :)
# Nov 29th 2017, 15:57 hmic it will pay off very quickly and you will not want to go back
# Nov 29th 2017, 15:56 etipaced I’m going through the same process now myself. Been in 2.x for many years and am simply forcing myself to learn 3.x. It does feel like starting over but it’s a necessary step.
# Nov 29th 2017, 15:55 etipaced @neothermic You might want to read through this page as a start: https://book.cakephp.org/3.0/en/appendices/orm-migration.html
# 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