Log message #3882600

# At Username Text
# May 30th 2016, 03:03 voycey $this->id?
# May 30th 2016, 03:03 aro is there a way to get the current record being validated from inside the validator function in a model
# May 30th 2016, 02:52 kdcaker I am sorry I got kicked off the chat somehow
# May 30th 2016, 02:51 LckyBy517 then realize the error was in another file XD facepalm
# May 30th 2016, 02:32 kdcaker It is; I need to know/ or see at least what is needed for a custom router class, and how to resolve my authorization issue with the login in method.
# May 30th 2016, 02:30 voycey kdcaker: was that a question?
# May 30th 2016, 02:29 kdcaker I am using cake v 2.9 btw
# May 30th 2016, 02:28 kdcaker Aside from the default routing class provided, I know I need connect statements, and I have them written in the default class now.
# May 30th 2016, 02:22 LckyBy517 i feel like both php-fpm and mysql are gonna go uggggghhh everytime i make that query ROFL
# May 30th 2016, 02:21 LckyBy517 ok
# May 30th 2016, 02:21 voycey if you get all the associations done then yes
# May 30th 2016, 02:21 LckyBy517 the app? java
# May 30th 2016, 02:21 LckyBy517 once i do that though i'll be able to make one call like $this->find('all')->contains(['each, of, the, associated, tables here]); right?
# May 30th 2016, 02:20 voycey what is it coded in?
# May 30th 2016, 02:20 LckyBy517 sounds likea project for tomorrow LOL
# May 30th 2016, 02:20 LckyBy517 dang, ok well this is gonna take a bit hahah XD
# May 30th 2016, 02:20 voycey hasOne / Many and belongsTo
# May 30th 2016, 02:20 voycey cake has no way of knowing what tables it links to - it doesnt read database contraints
# May 30th 2016, 02:20 LckyBy517 this->has(One/Many) for each dang table?
# May 30th 2016, 02:19 LckyBy517 like i was starting to do hmmm
# May 30th 2016, 02:19 voycey you are going to have to build your associations your self
# May 30th 2016, 02:18 LckyBy517 well crap, anyway i could make it use the UUID for this purpose? can't change the database because the app i didn't make and i don't understand the devs code to just do it myself
# May 30th 2016, 02:18 voycey yeah so basically your associations are built in database with generic names
# May 30th 2016, 02:18 LckyBy517 and another
# May 30th 2016, 02:18 LckyBy517 http://pastebin.com/QbcRtLJe
# May 30th 2016, 02:17 voycey no because it doesnt match cakes conventions
# May 30th 2016, 02:17 LckyBy517 so something cakephp won't pick up on though?
# May 30th 2016, 02:17 voycey post more of the schemas
# May 30th 2016, 02:17 voycey they could be related through the uuid I guess
# May 30th 2016, 02:16 voycey thats fine
# May 30th 2016, 02:16 LckyBy517 stats_players being the main table that only has uuid and name columns
# May 30th 2016, 02:15 LckyBy517 there is one of the tables
# May 30th 2016, 02:15 LckyBy517 http://pastebin.com/1pWzJeiz
# May 30th 2016, 02:15 voycey paste your schema into gist
# May 30th 2016, 02:15 voycey but its not necessarily wrong to have no associations (it would be a bit strange but not always wrong)
# May 30th 2016, 02:14 voycey its like saying that id 7 in the posts table is related to id 7 in the comments table
# May 30th 2016, 02:14 voycey if your tables dont have foreign keys in them then you are basically trying to relate records based on their primary key which cant work
# May 30th 2016, 02:13 voycey well that doesnt sound right
# May 30th 2016, 02:11 LckyBy517 if i look at the relations view in phpmyadmin yeah, it shows that uuid is related to the main table uuid field
# May 30th 2016, 02:08 voycey if so then they have logical relations
# May 30th 2016, 02:08 voycey do your tables have foreign keys in them?