# |
Apr 19th 2017, 12:30 |
inoas |
crazycoder: why do you want to remove stuff from the response? |
# |
Apr 19th 2017, 12:30 |
crazycoder |
inoas, wait.... $_hidden ? |
# |
Apr 19th 2017, 12:30 |
inoas |
on that issue |
# |
Apr 19th 2017, 12:30 |
inoas |
you can formatResult AFAIK |
# |
Apr 19th 2017, 12:30 |
inoas |
on your entity |
# |
Apr 19th 2017, 12:30 |
inoas |
crazycoder: create real model, use $_hidden |
# |
Apr 19th 2017, 12:29 |
inoas |
however if you want to remove things like that, maybe better make it a real model and not fetch any fields aside the maybe required onces for PKs/FKs |
# |
Apr 19th 2017, 12:29 |
crazycoder |
should i use formatResult() ? |
# |
Apr 19th 2017, 12:29 |
Junior |
inoas, yes, i have modified that, the thing is that i have removed the footprint and got that error, now i added it back and still get Missing or miss-referenced table class for database table footprints (auto-tables). |
# |
Apr 19th 2017, 12:29 |
crazycoder |
inoas, how can i remove it automatically? |
# |
Apr 19th 2017, 12:29 |
inoas |
crazycoder: where is the question? |
# |
Apr 19th 2017, 12:29 |
crazycoder |
the recordset |
# |
Apr 19th 2017, 12:29 |
crazycoder |
response of the query obviosuly |
# |
Apr 19th 2017, 12:29 |
crazycoder |
can i remove "_joinData" from the reponse somehow? |
# |
Apr 19th 2017, 12:29 |
inoas |
$this->hasMany('CmsDocumentRevisions', ['className' => 'FlexiCms.CmsDocuments']) etc |
# |
Apr 19th 2017, 12:28 |
crazycoder |
hey |
# |
Apr 19th 2017, 12:28 |
inoas |
you can do 'Users', ['className' => 'AuthAcl.Users'] |
# |
Apr 19th 2017, 12:28 |
Junior |
inside my order model ,but this is wonderful as i can spot problems :) |
# |
Apr 19th 2017, 12:28 |
inoas |
;) |
# |
Apr 19th 2017, 12:28 |
Junior |
i had $this->belongsTo('Users', [ instead of $this->belongsTo('AuthAcl.Users', [ |
# |
Apr 19th 2017, 12:28 |
Junior |
fixed that one |
# |
Apr 19th 2017, 12:27 |
inoas |
does it live in a plugin? |
# |
Apr 19th 2017, 12:27 |
inoas |
heh |
# |
Apr 19th 2017, 12:26 |
Junior |
fmm |
# |
Apr 19th 2017, 12:26 |
Junior |
i even get Missing or miss-referenced table class for database table users (auto-tables). |
# |
Apr 19th 2017, 12:26 |
Junior |
nicve |
# |
Apr 19th 2017, 12:25 |
inoas |
hm cant find that myself ;) |
# |
Apr 19th 2017, 12:24 |
inoas |
somewhere it sets footprints as the default table |
# |
Apr 19th 2017, 12:24 |
inoas |
I'd look at the source of fooprint |
# |
Apr 19th 2017, 12:24 |
inoas |
https://github.com/cakephp/cakephp/issues/3795 |
# |
Apr 19th 2017, 12:23 |
Junior |
meaning that i have followed the readme |
# |
Apr 19th 2017, 12:23 |
Junior |
i have no ideea at this point what i have done now |
# |
Apr 19th 2017, 12:23 |
inoas |
you gotta fix that bigfoot running around! |
# |
Apr 19th 2017, 12:22 |
inoas |
LOL |
# |
Apr 19th 2017, 12:22 |
Junior |
:) |
# |
Apr 19th 2017, 12:22 |
Junior |
inoas now i get: Missing or miss-referenced table class for database table footprints (auto-tables). |
# |
Apr 19th 2017, 12:21 |
inoas |
when hand crafting things and having typos |
# |
Apr 19th 2017, 12:21 |
inoas |
I think just today I saw that exception maybe 4 times ;p |
# |
Apr 19th 2017, 12:19 |
inoas |
but then creating the file is a 30sec job |
# |
Apr 19th 2017, 12:19 |
inoas |
aside bake-time I have only seen one case where I found them to be okay - simplistic M:N joins |
# |
Apr 19th 2017, 12:19 |
inoas |
auto-tables = hell |