# |
May 30th 2016, 03:09 |
voycey |
put a breakpoint on it in validation and see whats available |
# |
May 30th 2016, 03:06 |
aro |
but i need to pass the record to that constructor |
# |
May 30th 2016, 03:06 |
aro |
so i am creating $provider = new WhateverProvider(); |
# |
May 30th 2016, 03:06 |
aro |
i need my provider to not call statically |
# |
May 30th 2016, 03:05 |
aro |
when i add my provider by class name, i get errors for using $this when not in object context |
# |
May 30th 2016, 03:05 |
LckyBy517 |
LOL ok i need to figure out what join type i need ROFL. adding a third table i'm getting about a million results back per person now XD |
# |
May 30th 2016, 03:04 |
aro |
i did a debug on that and i got no property |
# |
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 |