# |
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? |
# |
May 30th 2016, 02:05 |
LckyBy517 |
hows come cake doesn't pickup on the relation |
# |
May 30th 2016, 02:05 |
LckyBy517 |
if i go to one of the tables the UUID field is clickable and it brings me to the main table |
# |
May 30th 2016, 02:04 |
LckyBy517 |
actually they are linked.... |
# |
May 30th 2016, 02:04 |
LckyBy517 |
ugh, this is gonna be painful |
# |
May 30th 2016, 02:03 |
voycey |
it still needs a model but the model wont have any associations |
# |
May 30th 2016, 02:01 |
LckyBy517 |
it won't pull in the data will it? |
# |
May 30th 2016, 02:00 |
voycey |
if they dont have a logical relationship between the table then there is little point in trying to force one |
# |
May 30th 2016, 01:58 |
LckyBy517 |
so in my code for the main table i want to do $this->has(One/Many) and then state the relationship right? then in all those other models i want to just put this->belongsTo correct? |
# |
May 30th 2016, 01:57 |
LckyBy517 |
let me ask this silly question before i get too far and find out i'm backasswards, i've got a database with this particular app that has 35 tables.... 1 of them has a UUID and name columns, the other 34 tables just have UUID and then the data, there are no realtionships defined either sadly |
# |
May 29th 2016, 22:26 |
MohammadSaleh |
$data['ip'] = $controller->request->clientIp(); |
# |
May 29th 2016, 22:26 |
MohammadSaleh |
all of fields saved success but ip is null |
# |
May 29th 2016, 22:26 |
MohammadSaleh |
LckyBy517, but didnot saving it |
# |
May 29th 2016, 22:25 |
MohammadSaleh |
i have try to save ip value to a field named "ip" in table |
# |
May 29th 2016, 22:24 |
LckyBy517 |
? |
# |
May 29th 2016, 22:21 |
MohammadSaleh |
why cakephp 3 does not save ip value to database? |
# |
May 29th 2016, 22:21 |
MohammadSaleh |
Hi |
# |
May 29th 2016, 22:19 |
LckyBy517 |
LMFAO i did, only issue is the websocket connection closes after a short period hmmmm |
# |
May 29th 2016, 22:09 |
LckyBy517 |
..... i think i just solved my issue of about 3 days on accident O,.o |
# |
May 29th 2016, 21:59 |
LckyBy517 |
too bad neither of my current issues have anything to do with cakephp :'( |
# |
May 29th 2016, 21:58 |
LckyBy517 |
hmmm, apparently i updated it fairly recently and don't remember haha was 3.2.8 now its 3.2.10 haha |
# |
May 29th 2016, 21:58 |
frzrr |
) |
# |
May 29th 2016, 21:58 |
LckyBy517 |
lol well the one i'm currently building that is |
# |
May 29th 2016, 21:57 |
frzrr |
yea feels the same but many sites :) |
# |
May 29th 2016, 21:56 |
LckyBy517 |
lol i don't even know what version of cake my site is running on |
# |
May 29th 2016, 21:53 |
marlinc |
The latest stable release is 3.2.10 |
# |
May 29th 2016, 21:53 |
marlinc |
30th of January :) |
# |
May 29th 2016, 21:52 |
marlinc |
https://github.com/cakephp/cakephp/releases/tag/3.2.0 |
# |
May 29th 2016, 21:52 |
frzrr |
heh thought it was still in testing |