# |
Aug 27th 2019, 16:31 |
neon1024 |
Hm, well that’s the end of the day for me |
# |
Aug 27th 2019, 16:30 |
neon1024 |
Well adding `_joinData` to the `$_accessible` of my `Question` entity has prevented the join data marhslling into an entity |
# |
Aug 27th 2019, 16:30 |
ricksaccous |
lol |
# |
Aug 27th 2019, 16:29 |
ricksaccous |
but i'm too lazy |
# |
Aug 27th 2019, 16:29 |
slackebot2 |
<neon1024> |
# |
Aug 27th 2019, 16:29 |
ricksaccous |
prob allowing each field specifically is better though |
# |
Aug 27th 2019, 16:29 |
ricksaccous |
i generally just leave my entities 'id' => false, '*' => true when it comes to accessibility |
# |
Aug 27th 2019, 16:28 |
neon1024 |
Hm, I don’t see it anywhere. I’ll give that a try |
# |
Aug 27th 2019, 16:28 |
ricksaccous |
i don't think cake just allows it magically unfortunately |
# |
Aug 27th 2019, 16:28 |
neon1024 |
As it’s generated by the join |
# |
Aug 27th 2019, 16:28 |
ricksaccous |
it does, and it should show up in the accessible array |
# |
Aug 27th 2019, 16:27 |
neon1024 |
Well honestly, I wouldn’t know if `_joinData` was accessible or not. I don’t _think_ it needs tobe |
# |
Aug 27th 2019, 16:27 |
neon1024 |
:male_mage: |
# |
Aug 27th 2019, 16:27 |
ricksaccous |
okay lol |
# |
Aug 27th 2019, 16:27 |
neon1024 |
Yus |
# |
Aug 27th 2019, 16:27 |
ricksaccous |
TELL ME NOW |
# |
Aug 27th 2019, 16:27 |
ricksaccous |
is it? |
# |
Aug 27th 2019, 16:23 |
ricksaccous |
i just wanted to make sure _joinData was accessible in your questions entity |
# |
Aug 27th 2019, 16:21 |
neon1024 |
Although the response FormEntity has a `questions` property which contains `_joinData` so I kinda followed that |
# |
Aug 27th 2019, 16:20 |
neon1024 |
I wonder if I’ve put my `_joinData` in the wrong place :thinking_face: |
# |
Aug 27th 2019, 16:20 |
neon1024 |
I’ve updated my Form and Question entity to add `sortorder` and I don’t see any changes :( |
# |
Aug 27th 2019, 16:18 |
neon1024 |
Ah ok, yes, apologies! |
# |
Aug 27th 2019, 16:18 |
ricksaccous |
that's not what's accessible in the Question entity itself is it |
# |
Aug 27th 2019, 16:17 |
ricksaccous |
like i said that's join data |
# |
Aug 27th 2019, 16:17 |
neon1024 |
Well, messy underlined / strikethrough :P |
# |
Aug 27th 2019, 16:17 |
neon1024 |
The second image I linked, has it underlined |
# |
Aug 27th 2019, 16:17 |
ricksaccous |
not in the actual Question entity |
# |
Aug 27th 2019, 16:17 |
ricksaccous |
but that's join data |
# |
Aug 27th 2019, 16:17 |
ricksaccous |
i see sort order is accessible in _joinData |
# |
Aug 27th 2019, 16:17 |
graziel |
i use phpstorm and its ok in there |
# |
Aug 27th 2019, 16:17 |
neon1024 |
I highlighted it :slightly_smiling_face: |
# |
Aug 27th 2019, 16:16 |
ricksaccous |
@neon1024 what's accessible in Question? |
# |
Aug 27th 2019, 16:16 |
neon1024 |
@graziel Are there choices? :O |
# |
Aug 27th 2019, 16:16 |
neon1024 |
@graziel You don’t like the Xdebug `var_dump` theme? |
# |
Aug 27th 2019, 16:16 |
alexdd55976 |
@admad to literaly see whats in it.. yeah.. but is it not possible to show it? this is very general quesion, i know |
# |
Aug 27th 2019, 16:15 |
graziel |
ewww light theme |
# |
Aug 27th 2019, 16:14 |
neon1024 |
I don’t *really* want to expand the association |
# |
Aug 27th 2019, 16:14 |
neon1024 |
@ricksaccous I also can’t seem to add `FormsQuestions` to my `associated` array in `patchEntity` as it’s just a `through` table |
# |
Aug 27th 2019, 16:14 |
admad |
@alexdd55976 them use json_encode() or var_dump() |
# |
Aug 27th 2019, 16:13 |
slackebot2 |
<neon1024> |
# |
Aug 27th 2019, 16:12 |
ricksaccous |
if you don't want to that's fine but i'm just curious |