# |
Nov 29th 2017, 20:53 |
saeideng |
and save with save entities() |
# |
Nov 29th 2017, 20:53 |
saeideng |
create entity |
# |
Nov 29th 2017, 20:53 |
joopm |
->limit(1) would work |
# |
Nov 29th 2017, 20:53 |
obinoob |
also here https://book.cakephp.org/3.0/en/orm/validation.html#using-different-validators-per-association |
# |
Nov 29th 2017, 20:51 |
obinoob |
so i think I've found my answer https://book.cakephp.org/3.0/en/orm/saving-data.html#saving-associations |
# |
Nov 29th 2017, 20:50 |
obinoob |
as my nick implies I am a noob ;) |
# |
Nov 29th 2017, 20:50 |
joopm |
i only need this exactly |
# |
Nov 29th 2017, 20:50 |
obinoob |
saeideng I am a "WIP" lol learning everything by my own I guess that would be easier to seat on a class room but not possible |
# |
Nov 29th 2017, 20:49 |
joopm |
->where(['AND'=>[['Applications.state_id'=>2],['user_id'=>$this->Auth->User('id')]]]) //here does not works first();} |
# |
Nov 29th 2017, 20:49 |
joopm |
{return $q |
# |
Nov 29th 2017, 20:49 |
saeideng |
`$conn->execute('INSERT into addresses ` |
# |
Nov 29th 2017, 20:49 |
joopm |
do you that how can i get the first result from the following querry |
# |
Nov 29th 2017, 20:48 |
joopm |
good evening to all community members |
# |
Nov 29th 2017, 20:48 |
saeideng |
obinoob |
# |
Nov 29th 2017, 20:48 |
obinoob |
are your sure? |
# |
Nov 29th 2017, 20:47 |
saeideng |
why you use cake ? |
# |
Nov 29th 2017, 20:47 |
obinoob |
yes I'm not escaping content etc not for the time being anyways |
# |
Nov 29th 2017, 20:45 |
inoas |
because sqlinject ,-)? |
# |
Nov 29th 2017, 20:44 |
inoas |
neothermic heh |
# |
Nov 29th 2017, 20:44 |
dereuromark |
hopefully this is an admin only function :slightly_smiling_face: |
# |
Nov 29th 2017, 20:40 |
obinoob |
perhaps I can better illustrate my case with code, eventually my aim is to replace the current code with the use of entity class objects: https://gist.github.com/obinoob/1baf3af92c689b746a0ed824d57746fe |
# |
Nov 29th 2017, 20:38 |
obinoob |
I wonder if it is possible to insert data into multiple tables at once using entity dot notation (after set associations between entities) or do I still need one entity object for each entry? |
# |
Nov 29th 2017, 20:07 |
neothermic |
@ionas, yeah both, both are doing it wrong :P |
# |
Nov 29th 2017, 19:25 |
inoas |
cause that's what I fetched with i18n extract |
# |
Nov 29th 2017, 19:25 |
inoas |
is this still working? __d('cake', 'on %s'), |
# |
Nov 29th 2017, 19:16 |
WyriHaximus |
(Also ref the gist =D) |
# |
Nov 29th 2017, 19:16 |
WyriHaximus |
Awesome \o/! |
# |
Nov 29th 2017, 19:16 |
inoas |
i ll put the to stuff into cakephp/localized and ref you |
# |
Nov 29th 2017, 19:16 |
inoas |
ty |
# |
Nov 29th 2017, 19:16 |
WyriHaximus |
inoas: commented on the gist |
# |
Nov 29th 2017, 19:16 |
inoas |
thats ok |
# |
Nov 29th 2017, 19:15 |
WyriHaximus |
inoas: changed it to faulty rather then invalid |
# |
Nov 29th 2017, 19:14 |
inoas |
and well __USER_FORM_INPUT_ERROR_FLASH_MESSAGE__ |
# |
Nov 29th 2017, 19:14 |
inoas |
__CART_SESSION_INVALID_EXCEPTION_MESSAGE__ is my placeholder |
# |
Nov 29th 2017, 19:13 |
inoas |
basically after purchasing parts of the session data are cleared |
# |
Nov 29th 2017, 19:12 |
inoas |
yes |
# |
Nov 29th 2017, 19:12 |
WyriHaximus |
inoas: Does "Cart session invalid." refer to an ecommerce shopping cart? |
# |
Nov 29th 2017, 19:12 |
WyriHaximus |
inoas: ping |
# |
Nov 29th 2017, 18:53 |
inoas |
bootstrapui cakephp3 plugin messes with those already |
# |
Nov 29th 2017, 18:52 |
inoas |
aside messing with the templates |
# |
Nov 29th 2017, 18:52 |
inoas |
channel: is there any way to make formhelpers date widgets render d m y instead of y m d? |