# |
Jul 19th 2018, 21:31 |
asdfgh |
i am using cakephp 3.5 |
# |
Jul 19th 2018, 21:31 |
asdfgh |
saeideng yes |
# |
Jul 19th 2018, 21:22 |
lpouzenc |
I can't find a way to walk over associations in cake Table. I only find getter that need model Name. I understand there is lazy loading mechanics involved around there. |
# |
Jul 19th 2018, 21:21 |
lpouzenc |
and during cake bake all, I have a list of some foreignKeys : ['adherent_type_id', 'ville_id'], I want to resolve this to a list that is ['AdherentTypes', 'Villes'] based on belongsTo() information. |
# |
Jul 19th 2018, 21:19 |
lpouzenc |
https://paste.gnome.org/pfpfuqi2q |
# |
Jul 19th 2018, 21:19 |
lpouzenc |
to put an example, I have this model : |
# |
Jul 19th 2018, 21:12 |
lpouzenc |
CakePHP 3.6 |
# |
Jul 19th 2018, 21:11 |
lpouzenc |
I am in a custom helper, during "cake bake all", I generated Controller's index() method, I have a list of columns names from current model in input, they belongsTo() some others models, I want to ouput the list of those models. |
# |
Jul 19th 2018, 21:07 |
lpouzenc |
Hi, as a CakePHP user, I am extending bake to generate some more code (I want to generate the stuff needed to have friendsofcake/Search working) |
# |
Jul 19th 2018, 20:41 |
abdualelah.mdy |
thanks for help |
# |
Jul 19th 2018, 20:41 |
abdualelah.mdy |
i will try |
# |
Jul 19th 2018, 20:40 |
styks1987 |
I've got to head out, but maybe removing the form part and submitting values directly might also help |
# |
Jul 19th 2018, 20:39 |
styks1987 |
I wonder if you need to alias 'username' and 'password' |
# |
Jul 19th 2018, 20:35 |
abdualelah.mdy |
hashed |
# |
Jul 19th 2018, 20:35 |
abdualelah.mdy |
yes |
# |
Jul 19th 2018, 20:35 |
styks1987 |
Are you encrypting the password? |
# |
Jul 19th 2018, 20:32 |
abdualelah.mdy |
i did all of this but all i get is wrong password or username |
# |
Jul 19th 2018, 20:31 |
abdualelah.mdy |
File uploaded https://cakesf.slack.com/files/UBSRFQFLP/FBTJSQHMH/-.php / https://slack-files.com/T053DPNCM-FBTJSQHMH-90417b36eb |
# |
Jul 19th 2018, 20:30 |
abdualelah.mdy |
File uploaded https://cakesf.slack.com/files/UBSRFQFLP/FBT6C7NM7/-.php / https://slack-files.com/T053DPNCM-FBT6C7NM7-5dd40b8241 |
# |
Jul 19th 2018, 20:28 |
styks1987 |
https://book.cakephp.org/3.0/en/controllers/components/authentication.html#customizing-find-query |
# |
Jul 19th 2018, 20:28 |
styks1987 |
If you want to override the database fields you will need to override findAuth function |
# |
Jul 19th 2018, 20:27 |
styks1987 |
when configuring the component you can set the fields |
# |
Jul 19th 2018, 20:26 |
styks1987 |
https://book.cakephp.org/3.0/en/controllers/components/authentication.html#configuring-authentication-handlers |
# |
Jul 19th 2018, 20:26 |
styks1987 |
form auth defaults to username |
# |
Jul 19th 2018, 20:16 |
abdualelah.mdy |
Why is auth component is forcing me to use username column in my table ? is there any way to go around it ? |
# |
Jul 19th 2018, 20:14 |
abdualelah.mdy |
hello everyone |
# |
Jul 19th 2018, 19:36 |
saeideng |
IIRC elasticsearch plugin needs new tag |
# |
Jul 19th 2018, 19:35 |
saeideng |
i mean 3.5 :slightly_smiling_face: |
# |
Jul 19th 2018, 19:35 |
saeideng |
looks you are using cake 3.6 |
# |
Jul 19th 2018, 19:35 |
saeideng |
asdfgh |
# |
Jul 19th 2018, 18:44 |
okelet |
Where have you seen that method? |
# |
Jul 19th 2018, 18:40 |
asdfgh |
anyone ? |
# |
Jul 19th 2018, 18:11 |
asdfgh |
? |
# |
Jul 19th 2018, 18:11 |
asdfgh |
does it not work with php 7.2 |
# |
Jul 19th 2018, 18:07 |
asdfgh |
what is this ?? |
# |
Jul 19th 2018, 18:07 |
asdfgh |
i get [BadMethodCallException] Unknown method "getRepository" |
# |
Jul 19th 2018, 18:07 |
asdfgh |
i am using cakephp-elasticsearch plugin |
# |
Jul 19th 2018, 18:07 |
asdfgh |
hello |
# |
Jul 19th 2018, 17:37 |
okelet |
Hi, I have extended ADmad/JwtAuth.Jwt overriding the getUser method. If in that method I return an entity, I always get 401 unauthorized; if I return the entity as an array, it works fine. I want to return an entity because I would like to use some methods on the class. Why does this happen if I return an entity? |
# |
Jul 19th 2018, 17:09 |
rudy1976s |
I am trying towrite a restful controller with json response: what is the best ay to pass parameters? I'd like to have something like /controller/action/query_limit and so on |
# |
Jul 19th 2018, 17:08 |
rudy1976s |
good afternoon |