# |
Feb 4th 2018, 00:04 |
ahmed_bodi |
... your kidding |
# |
Feb 4th 2018, 00:04 |
hmic |
should be the same now! |
# |
Feb 4th 2018, 00:03 |
ahmed_bodi |
correct |
# |
Feb 4th 2018, 00:03 |
hmic |
user and referer was the same table to start with, true? |
# |
Feb 4th 2018, 00:03 |
ahmed_bodi |
ah no, i split the referrer stuff out into its own table |
# |
Feb 4th 2018, 00:03 |
hmic |
which is the one we are talking about? your user table which holds a tree structure now |
# |
Feb 4th 2018, 00:03 |
ahmed_bodi |
dont i need the id of the referrer in the referrer table for the children query? |
# |
Feb 4th 2018, 00:03 |
ahmed_bodi |
that was the get of the user id |
# |
Feb 4th 2018, 00:02 |
hmic |
so you need to have the id at hand |
# |
Feb 4th 2018, 00:02 |
hmic |
you had a get() before with the id |
# |
Feb 4th 2018, 00:02 |
hmic |
i dont follow |
# |
Feb 4th 2018, 00:02 |
ahmed_bodi |
:p |
# |
Feb 4th 2018, 00:02 |
ahmed_bodi |
right but that means i have to run the get on the referrer first to get the id of the referer for the user and then run children for the children |
# |
Feb 3rd 2018, 23:59 |
hmic |
:P |
# |
Feb 3rd 2018, 23:59 |
hmic |
like ->get() you used before does too |
# |
Feb 3rd 2018, 23:59 |
ahmed_bodi |
the children finder seems to require the id of the node it seems? |
# |
Feb 3rd 2018, 23:58 |
hmic |
it's all on the page i linked |
# |
Feb 3rd 2018, 23:58 |
hmic |
why dont you use the children finder then? |
# |
Feb 3rd 2018, 23:58 |
ahmed_bodi |
any ideas? |
# |
Feb 3rd 2018, 23:57 |
ahmed_bodi |
which is showing as null in the object |
# |
Feb 3rd 2018, 23:57 |
ahmed_bodi |
now thats only showing me the referral with that id, i want all the children too |
# |
Feb 3rd 2018, 23:57 |
ahmed_bodi |
$referrals = $this->Referrals->find('threaded', ['contain' => 'Users'])->where(['user_id' => $user_obj->referral_id]); |
# |
Feb 3rd 2018, 23:57 |
ahmed_bodi |
@hmic so this is what im doing |
# |
Feb 3rd 2018, 23:51 |
popperz0r |
ok thanks! :slightly_smiling_face: |
# |
Feb 3rd 2018, 23:50 |
hmic |
seems like its legit and just add that functionality for windows users |
# |
Feb 3rd 2018, 23:50 |
hmic |
so you might understand |
# |
Feb 3rd 2018, 23:50 |
hmic |
read whats in the github repo |
# |
Feb 3rd 2018, 23:50 |
hmic |
remove the package from your composer.json |
# |
Feb 3rd 2018, 23:49 |
popperz0r |
is it safe to remove i assum? |
# |
Feb 3rd 2018, 23:49 |
hmic |
i actually dont know what it is at all, but this would explain it |
# |
Feb 3rd 2018, 23:49 |
hmic |
it is to provide some functionality to windows users that is available without helper on unix like oses |
# |
Feb 3rd 2018, 23:48 |
hmic |
still, what i say |
# |
Feb 3rd 2018, 23:48 |
popperz0r |
even my server |
# |
Feb 3rd 2018, 23:48 |
popperz0r |
im ubuntu :S |
# |
Feb 3rd 2018, 23:48 |
hmic |
dont know. could be just a helper for functionality windows does not provide, while other (unix like) OS do |
# |
Feb 3rd 2018, 23:47 |
popperz0r |
looks like a keylogger? |
# |
Feb 3rd 2018, 23:47 |
hmic |
check the cakephp composer.json on what it requires |
# |
Feb 3rd 2018, 23:47 |
hmic |
i dont |
# |
Feb 3rd 2018, 23:47 |
popperz0r |
i think it was with cake update |
# |
Feb 3rd 2018, 23:47 |
popperz0r |
:S |
# |
Feb 3rd 2018, 23:28 |
hmic |
you obviously installed that package |