Log message #4018379

# At Username Text
# Apr 20th 2017, 12:43 iqu but angular is just too much..
# Apr 20th 2017, 12:43 iqu even reactjs is mostly horrible
# Apr 20th 2017, 12:42 admad it is a lot easier to grasp than angular :slightly_smiling_face:
# Apr 20th 2017, 12:42 iqu admad: yep. thats true. I think that i will be changing from jquery sometime soon. vuejs looks cool compared to terrifying angular :D
# Apr 20th 2017, 12:41 admad crazycoder: foc/crud uses custom exception render for json
# Apr 20th 2017, 12:37 admad iqu: it would be the same as using any frontend js libs. Cake would be used just to serve the REST API
# Apr 20th 2017, 12:37 spriz if that doesn't work, chances are you have trouble in your table classes.
# Apr 20th 2017, 12:37 spriz @nk-sonu this should guide you https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#retrieving-associated-data
# Apr 20th 2017, 12:36 nk-sonu simple question how can i get associated data in this. that is not coming.. i tried with select , contain but no luck...
# Apr 20th 2017, 12:33 spriz put in some more details, preferably in a gist about the generated SQL and maybe the schema :slightly_smiling_face:
# Apr 20th 2017, 12:33 iqu anyone used vuejs with cakephp
# Apr 20th 2017, 12:32 nk-sonu :slightly_smiling_face: you were active there so asked..
# Apr 20th 2017, 12:32 spriz no worries :+1:
# Apr 20th 2017, 12:32 spriz sure, but when you tag a single person it's no longer "the community" ;)
# Apr 20th 2017, 12:32 nk-sonu sorry
# Apr 20th 2017, 12:31 nk-sonu @spriz haha.. its CakePHP community . we are here to help each other.. :slightly_smiling_face:
# Apr 20th 2017, 12:31 spriz @nk-sonu also if anyone are able to help, they'll answer. If you're looking to get expert help, you should expect to pay an expert :slightly_smiling_face:
# Apr 20th 2017, 12:30 spriz @nk-sonu That query doesn't really provide enough details - what's the generated SQL?
# Apr 20th 2017, 12:29 crazycoder anyone manage custom exception render for json requests?
# Apr 20th 2017, 12:29 nk-sonu https://cakesf.slack.com/files/nk-sonu/F52PBFQ87/-.php
# Apr 20th 2017, 12:29 nk-sonu @spriz can you look my issue plz.
# Apr 20th 2017, 12:25 Junior and haven't figured out why yet
# Apr 20th 2017, 12:25 Junior But if i do the same for my OrdersTable - class OrdersTable extends \App\Model\Table\AppTable i do not get user data
# Apr 20th 2017, 12:25 Junior After i login , in the users table the modifiedby is saved
# Apr 20th 2017, 12:24 Junior and inside src/Model/Table/AppTable.php inside the initialize i add the behaviour
# Apr 20th 2017, 12:24 Junior And now i do: class UsersTable extends \App\Model\Table\AppTable
# Apr 20th 2017, 12:24 Junior So my mode is inside :plugins/AuthAcl/src/Model/Table/UsersTable.php
# Apr 20th 2017, 12:23 Junior spriz, i typed that :)
# Apr 20th 2017, 12:23 spriz Uses vs USers Junior :P
# Apr 20th 2017, 12:23 spriz If you'd test something in an afterSave in a table class, how would you fake the entity property of the afterSave?
# Apr 20th 2017, 12:23 Junior I have the table model inshide the plugin :)
# Apr 20th 2017, 12:22 inoas Users ;)?
# Apr 20th 2017, 12:22 Junior inoas, partially i saw something very strange . If i do $this->loadModel('AuthAcl.Uses') it doesn't work
# Apr 20th 2017, 12:16 crazycoder hi inoas
# Apr 20th 2017, 12:02 inoas Junior: could you solve footprint ?
# Apr 20th 2017, 11:58 spriz Whenever i put anything in the second argument of getMockForModel, I get PDO Exception - anyone can guide me in some direction? :thinking_face:
# Apr 20th 2017, 11:56 Junior nevermind, i am stupid :))
# Apr 20th 2017, 11:49 Junior I am inside AuthAcl plugin and setting class UsersTable extends \App\Model\Table\AppTable and debug("aaaa"); in the AppTable doesn't work, any ideas why?
# Apr 20th 2017, 11:40 crazycoder i am using a custom errorrenderer https://gist.github.com/anonymous/b87f711b96154aed69ad57a3d742393c
# Apr 20th 2017, 11:39 crazycoder is there something more...elegant ?
# Apr 20th 2017, 11:38 crazycoder guys is correct echo json_encode($this->viewVars); inside a view called after an exception ? (json request)