Log message #4018502

# At Username Text
# Apr 20th 2017, 14:12 Junior nemmons, the models
# Apr 20th 2017, 14:11 nemmons yeah okay the AppController looks fine to me Junior
# Apr 20th 2017, 14:11 backstageel Hello, is there a way to share sessions between cake2 and cake 3 on same domain?
# Apr 20th 2017, 14:10 Junior the admin controller which is extended by regular controllers
# Apr 20th 2017, 14:10 nemmons in AppController->initialize() you're setting `$this->_userModel = 'AuthAcl.Users';`?
# Apr 20th 2017, 14:10 Junior https://gist.github.com/juniorionut/e0a4a512ff3fae58cfc0796817b5a770
# Apr 20th 2017, 14:08 Junior and i've noticed that if i do: $this->loadModel('AuthAcl.Users'); twice footprint data is lost
# Apr 20th 2017, 14:08 Junior nemmons , i managed to make work the users model inside my authacl plugin , but i have no "_footprint" inside my regular models
# Apr 20th 2017, 13:59 nemmons you haven't been able to get footprint working? if you want to pastebin your appcontroller, your users model, and a controller action + model you're trying to save, i can take a look
# Apr 20th 2017, 13:57 nemmons There's no way of accessing the auth data in the model layer without doing something like what Footprint does
# Apr 20th 2017, 13:43 Junior cleptric, i want to modify the beforeSave so i cannot pass from controller
# Apr 20th 2017, 13:43 cleptric junior: no, you have to pass it from the controller to the model
# Apr 20th 2017, 13:41 Junior Is there any way of accesing auth data in my app model? I plan to manually save the createdby and updatedby as it is taking me too long with the footprint plugin
# Apr 20th 2017, 13:31 nk-sonu is setForeignKey() and setBindingKey is my friend ?
# Apr 20th 2017, 13:29 spriz read through this https://book.cakephp.org/3.0/en/orm/associations.html
# Apr 20th 2017, 13:28 spriz I think you can use the conditions of the assoc then
# Apr 20th 2017, 13:27 nk-sonu becuase there is common panno in all tables...
# Apr 20th 2017, 13:27 spriz how would one know what to join then?
# Apr 20th 2017, 13:26 nk-sonu yes.. but there is issue with foreign key .. there is no foreign key like customer_id
# Apr 20th 2017, 13:25 spriz and you also have table classes like that for the other tables you want to join?
# Apr 20th 2017, 13:24 nk-sonu yes
# Apr 20th 2017, 13:21 spriz you have a CustomersTable.php ?
# Apr 20th 2017, 13:21 spriz no you don't
# Apr 20th 2017, 13:19 nk-sonu i am also a developer who landed with parachute in this module.. thats why i need to work with join
# Apr 20th 2017, 13:15 spriz I meant TableClasses rather than database tables
# Apr 20th 2017, 13:15 nk-sonu thats why i am doing join
# Apr 20th 2017, 13:14 spriz woops :)
# Apr 20th 2017, 13:14 nk-sonu the tables are not setup properly and there is nothing with cakephp convention.
# Apr 20th 2017, 13:14 spriz ->contain(['Fds', 'Ncds', 'Ipos']);
# Apr 20th 2017, 13:14 spriz $mf->find()
# Apr 20th 2017, 13:14 spriz contain does the join if you setup your tables properly
# Apr 20th 2017, 13:13 spriz when using ->contain() then you should not use join yourself
# Apr 20th 2017, 13:13 spriz read the link I sent you
# Apr 20th 2017, 13:13 nk-sonu @spriz join i a requirement here.. but condition is not coming in sql i checked there..
# Apr 20th 2017, 13:11 spriz and if you use the contain, remove the ->join()
# Apr 20th 2017, 13:11 spriz @nk-sonu I said it a few times - just the query doesn't provide enough information to help
# Apr 20th 2017, 13:08 nk-sonu but i am not getting data of associated tables
# Apr 20th 2017, 13:08 nk-sonu ->contain(['Fds', 'Ncds', 'Ipos'])
# Apr 20th 2017, 13:07 inoas nk-sonu try what
# Apr 20th 2017, 13:07 nk-sonu i again try with contain() but no luck
# Apr 20th 2017, 13:01 admad heh