# |
Apr 20th 2017, 14:17 |
Junior |
and i can't figure out why |
# |
Apr 20th 2017, 14:17 |
Junior |
so it is loaded, but no auth data |
# |
Apr 20th 2017, 14:17 |
Junior |
i have added some debugs in the behaviour |
# |
Apr 20th 2017, 14:17 |
Junior |
yes, it reaches the behaviour but i have no data |
# |
Apr 20th 2017, 14:16 |
Junior |
https://gist.github.com/juniorionut/6d16479bb76de7f9e1213133ebf2e26d |
# |
Apr 20th 2017, 14:15 |
nemmons |
and OrdersTable has the footprint behavior too? |
# |
Apr 20th 2017, 14:15 |
Junior |
but i do not have user data |
# |
Apr 20th 2017, 14:15 |
Junior |
meaning that it reached the footprint behaviour |
# |
Apr 20th 2017, 14:15 |
Junior |
yes, it does |
# |
Apr 20th 2017, 14:15 |
Junior |
https://gist.github.com/juniorionut/29aec77aec0fbba00a5633b5d96dd736 |
# |
Apr 20th 2017, 14:14 |
nemmons |
and ReservationsController extends AdminController? |
# |
Apr 20th 2017, 14:14 |
Junior |
but it doesn't work on reservations controller |
# |
Apr 20th 2017, 14:13 |
Junior |
meaning if i login |
# |
Apr 20th 2017, 14:13 |
Junior |
and here it works |
# |
Apr 20th 2017, 14:12 |
nemmons |
so you have some controller action in a controller that extends AdminController, and in that action you're calling a table's save method and there's no _footprint in beforeSave? |
# |
Apr 20th 2017, 14:12 |
Junior |
https://gist.github.com/juniorionut/615ff73845272b65e7604d1ec5f8f2e3 |
# |
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 |