# |
Apr 20th 2017, 14:53 |
artsir |
anyone have experience with godaddy and emails? I can't get it to work on their server, it works locally |
# |
Apr 20th 2017, 14:52 |
Neon1024 |
Then I can move onto why ES isn’t indexing the document :p |
# |
Apr 20th 2017, 14:51 |
Neon1024 |
So I’ll just lookup the ApiUser from the api_user_id field and insert it into the entity :D |
# |
Apr 20th 2017, 14:50 |
Neon1024 |
Turns out I don’t need to give Elasticsearch an id anyway, it’ll make one for me |
# |
Apr 20th 2017, 14:50 |
Neon1024 |
Not really, the foreign key is known, but the primary key isn't |
# |
Apr 20th 2017, 14:49 |
dereuromark |
Neon: this could only ever work with uuids. |
# |
Apr 20th 2017, 14:48 |
Neon1024 |
Can I load an association when creating a new entity? Or is it a matter of doing a find() and inserting the resulting entity into the other one |
# |
Apr 20th 2017, 14:42 |
Neon1024 |
No, it seems not. Guess you have to persist it for MySQL to assign one |
# |
Apr 20th 2017, 14:41 |
Neon1024 |
Does newEntity() add a primary key if one isn’t defined? |
# |
Apr 20th 2017, 14:29 |
Junior |
i have moved quickly, with same result |
# |
Apr 20th 2017, 14:28 |
Junior |
no worries, thank you for your time! |
# |
Apr 20th 2017, 14:28 |
Junior |
but that in aprox one hour as i have to leave |
# |
Apr 20th 2017, 14:28 |
Junior |
maybe something is there |
# |
Apr 20th 2017, 14:28 |
Junior |
i will try to move the auth related stuff to app controller |
# |
Apr 20th 2017, 14:28 |
nemmons |
sorry, i'm all out of ideas |
# |
Apr 20th 2017, 14:28 |
iqu |
ideas to make simple pagevisit counter? store users visited to session ? |
# |
Apr 20th 2017, 14:27 |
Junior |
i load the auth there |
# |
Apr 20th 2017, 14:27 |
nemmons |
oh, right sorry |
# |
Apr 20th 2017, 14:27 |
Junior |
in my case adminController handles auth |
# |
Apr 20th 2017, 14:26 |
nemmons |
well, the docs specifically say to put it in AppController which probably has something to do with the fact that AppController handles Auth |
# |
Apr 20th 2017, 14:26 |
Junior |
so it should be fine |
# |
Apr 20th 2017, 14:26 |
Junior |
although class UsersController extends AdminController |
# |
Apr 20th 2017, 14:25 |
Junior |
if i remove from appController i no longer have it in login |
# |
Apr 20th 2017, 14:25 |
Junior |
tried that, i need to have in both places |
# |
Apr 20th 2017, 14:25 |
nemmons |
have you tried removing it from AdminController and just having it in AppController? maybe having it in twice is causing a problem |
# |
Apr 20th 2017, 14:24 |
Junior |
I have added the trait in both AppConroller and AdminController |
# |
Apr 20th 2017, 14:24 |
nemmons |
or AdminController whatever |
# |
Apr 20th 2017, 14:24 |
nemmons |
no, you just need the Trait in your AppController |
# |
Apr 20th 2017, 14:24 |
Junior |
nemmons, you said that i need to include the trait in my AppTable ? |
# |
Apr 20th 2017, 14:23 |
Junior |
so on my /login i have the footprint ONLY If i do : $usersTable = $this->loadModel('AuthAcl.Users'); |
# |
Apr 20th 2017, 14:22 |
Junior |
https://gist.github.com/juniorionut/a608a58eb9674c883c712ff5c4933bab |
# |
Apr 20th 2017, 14:22 |
nemmons |
in that case i think you're right, everything is set up correctly |
# |
Apr 20th 2017, 14:22 |
nemmons |
okay no it's fine i believe you |
# |
Apr 20th 2017, 14:22 |
Junior |
i haven't pasted correctly, the start of the class, will redo now |
# |
Apr 20th 2017, 14:21 |
nemmons |
there's no AppTable there |
# |
Apr 20th 2017, 14:20 |
Junior |
i do not include the footprint there |
# |
Apr 20th 2017, 14:20 |
Junior |
nemmons the https://gist.github.com/juniorionut/615ff73845272b65e7604d1ec5f8f2e3 contains both users and app table |
# |
Apr 20th 2017, 14:20 |
nemmons |
oh unless that first gist you sent me was supposed to be the app table i guess, i thought it was the users table |
# |
Apr 20th 2017, 14:19 |
nemmons |
i haven't seen AppTable, does AppTable include the Footprint behavior? So far the only table you've shown me with the Footprint behavior is UsersTable |
# |
Apr 20th 2017, 14:19 |
Junior |
another element that i have noticed is that if $this->loadModel('AuthAcl.Users'); is done twice again no data |
# |
Apr 20th 2017, 14:18 |
Junior |
the https://gist.github.com/juniorionut/6d16479bb76de7f9e1213133ebf2e26d is when i try to create a new order/reservation |