# |
Dec 16th 2017, 12:34 |
jason001 |
hi cake - I'm using cake 3.5 - I'm looking through the docs but can't find an example for joining two queries. so let's say I have 2 subqueries that both contain a matching column, and I wanted to join the 2 - how would I do that in cakephp? |
# |
Dec 16th 2017, 11:55 |
joopm |
just found the reason |
# |
Dec 16th 2017, 11:50 |
joopm |
between this there is nothing happen which can reduce the elements |
# |
Dec 16th 2017, 11:49 |
joopm |
i made a query,pass the view by compact |
# |
Dec 16th 2017, 11:49 |
joopm |
but without the debug only the first element of the hasmany appear in the first input |
# |
Dec 16th 2017, 11:48 |
joopm |
now if i debug the query all the datas appear nice in the inputs |
# |
Dec 16th 2017, 11:48 |
joopm |
i have an edit form for editing hasmany datas |
# |
Dec 16th 2017, 11:48 |
joopm |
i have the following strange issue |
# |
Dec 16th 2017, 10:45 |
nanu |
any onr |
# |
Dec 16th 2017, 10:45 |
nanu |
gys |
# |
Dec 16th 2017, 10:45 |
nanu |
hello |
# |
Dec 15th 2017, 20:07 |
joopm |
and finally saved all desired |
# |
Dec 15th 2017, 20:07 |
joopm |
now i used saveMany with the patcEntities |
# |
Dec 15th 2017, 20:06 |
joopm |
and finally just saved that element |
# |
Dec 15th 2017, 20:06 |
joopm |
so its in every cycle of the foreach its jumps back there,owerwrite the first element |
# |
Dec 15th 2017, 20:05 |
joopm |
but the saving only works for the last item, because i saw in the debug the last saved item was the first element of array |
# |
Dec 15th 2017, 20:04 |
joopm |
its drive me crazy, itried save an entity with foreach |
# |
Dec 15th 2017, 20:04 |
joopm |
hihi |
# |
Dec 15th 2017, 20:03 |
admad |
any last words before you pass on to the after life? |
# |
Dec 15th 2017, 20:00 |
joopm |
but its kill me |
# |
Dec 15th 2017, 20:00 |
joopm |
i found out |
# |
Dec 15th 2017, 19:49 |
joopm |
? |
# |
Dec 15th 2017, 19:49 |
joopm |
but maybe you dont why save only the last item of foreach |
# |
Dec 15th 2017, 19:49 |
joopm |
hihi |
# |
Dec 15th 2017, 19:48 |
admad |
since you aren't rafael.js i am not :slightly_smiling_face: |
# |
Dec 15th 2017, 19:46 |
joopm |
excusme i am not sure if you talking to me |
# |
Dec 15th 2017, 19:45 |
admad |
@rafael.junqueira.sant i still can't understand what problem you are having. Mind giving it one more go? Start by showing what code are using for the flash component |
# |
Dec 15th 2017, 19:41 |
joopm |
oh its seems everybody is out |
# |
Dec 15th 2017, 19:32 |
joopm |
i saw something with create() but i can not use |
# |
Dec 15th 2017, 19:32 |
joopm |
the symptons is only the last Entity is saved |
# |
Dec 15th 2017, 19:31 |
joopm |
i am triing to save many records with a foreach |
# |
Dec 15th 2017, 19:31 |
joopm |
and last ask here |
# |
Dec 15th 2017, 19:31 |
joopm |
try code |
# |
Dec 15th 2017, 19:31 |
joopm |
before asking a made a lot of experiments |
# |
Dec 15th 2017, 19:30 |
joopm |
hello all |
# |
Dec 15th 2017, 17:55 |
dereuromark |
Es: you need to be more specific |
# |
Dec 15th 2017, 17:55 |
Es0teric |
question -- does anyone know of a way that cake interpolates strings within lang files in 2.x? |
# |
Dec 15th 2017, 17:44 |
rafael.junqueira.sant |
@dereuromark I'll be using my jerry rig for now, to save time, until the issue is fixed. Thank you for your attention. |
# |
Dec 15th 2017, 17:26 |
Es0teric |
question -- does anyone know of a way that cake interpolates strings within lang files in 2.x? |
# |
Dec 15th 2017, 17:25 |
rafael.junqueira.sant |
That's the one I tried to use. |
# |
Dec 15th 2017, 17:25 |
rafael.junqueira.sant |
By default, cakephp comes with Template/Element/Flash/success.ctp - is that what you're talking about? |