# |
Apr 19th 2017, 13:24 |
Junior |
will do that, thanks! |
# |
Apr 19th 2017, 13:22 |
inoas |
and you can isolate things like that |
# |
Apr 19th 2017, 13:22 |
inoas |
but more likely it is a configuration or app bug |
# |
Apr 19th 2017, 13:22 |
inoas |
IF it is a bug in footprint, you will find it more likely then |
# |
Apr 19th 2017, 13:21 |
inoas |
as I said, I'd stop wasting time, git checkout -b 'footprint-integration' :p |
# |
Apr 19th 2017, 13:20 |
Junior |
https://pastebin.com/Ua9cAWcE |
# |
Apr 19th 2017, 13:14 |
Junior |
i do not have data here althougt in the trait the user is set |
# |
Apr 19th 2017, 13:14 |
Junior |
); |
# |
Apr 19th 2017, 13:14 |
Junior |
current(Hash::extract((array)$options, $this->config('propertiesMap.' . $field))) |
# |
Apr 19th 2017, 13:14 |
Junior |
$field, |
# |
Apr 19th 2017, 13:14 |
Junior |
inoas, looking inside FootprintBehaviour on the beforeSave method we have $entity->set( |
# |
Apr 19th 2017, 13:11 |
crazycoder |
ok |
# |
Apr 19th 2017, 13:11 |
inoas |
maybe in __construct() you can switch $_hidden around ;) |
# |
Apr 19th 2017, 13:11 |
inoas |
which you can read from $this->_properties :p |
# |
Apr 19th 2017, 13:10 |
inoas |
then you should have a key and value in your entity named like that |
# |
Apr 19th 2017, 13:10 |
inoas |
what I meant is select(['__hide_for_json__' => '__hide_for_json__']) |
# |
Apr 19th 2017, 13:08 |
crazycoder |
but _joinData still here |
# |
Apr 19th 2017, 13:07 |
crazycoder |
i used .name |
# |
Apr 19th 2017, 13:07 |
crazycoder |
select() ? nah |
# |
Apr 19th 2017, 13:07 |
inoas |
then you can switch $hidden based on that |
# |
Apr 19th 2017, 13:07 |
inoas |
maybe through select ;) |
# |
Apr 19th 2017, 13:07 |
inoas |
[[your_flag]] |
# |
Apr 19th 2017, 13:07 |
inoas |
maybe you can find a way to pass down a flag to your entity |
# |
Apr 19th 2017, 13:06 |
inoas |
I found it always troubling that there are two ways to do it and if formatResults or $_hidden would be better |
# |
Apr 19th 2017, 13:06 |
inoas |
you can work with formatResults |
# |
Apr 19th 2017, 13:06 |
inoas |
yes |
# |
Apr 19th 2017, 13:06 |
crazycoder |
ok thanks inoas |
# |
Apr 19th 2017, 13:05 |
crazycoder |
hmm i think formatResults is better in that case |
# |
Apr 19th 2017, 13:05 |
crazycoder |
yes i need to foreach it |
# |
Apr 19th 2017, 13:05 |
inoas |
one of those walks through resultset for sure |
# |
Apr 19th 2017, 13:05 |
inoas |
collection, foreach, ArrayIterator |
# |
Apr 19th 2017, 13:04 |
inoas |
I really really need to get back to work, I am sure you can manage ;) |
# |
Apr 19th 2017, 13:04 |
inoas |
it is a resultset of entities (and nested entities) |
# |
Apr 19th 2017, 13:04 |
inoas |
you need to iterate it |
# |
Apr 19th 2017, 13:04 |
inoas |
debug $result ;p |
# |
Apr 19th 2017, 13:04 |
inoas |
please do your homework yourself ;) |
# |
Apr 19th 2017, 13:04 |
crazycoder |
that way? |
# |
Apr 19th 2017, 13:04 |
crazycoder |
$result->setHIdden(...) |
# |
Apr 19th 2017, 13:04 |
crazycoder |
$result = $query->all() |
# |
Apr 19th 2017, 13:04 |
inoas |
->first() ->all() |
# |
Apr 19th 2017, 13:04 |
inoas |
you can fetch it first |