# |
Dec 17th 2017, 19:40 |
saeideng |
no |
# |
Dec 17th 2017, 19:40 |
joop |
do you have mixed Models? |
# |
Dec 17th 2017, 19:39 |
saeideng |
I think I should use handy code here |
# |
Dec 17th 2017, 19:39 |
saeideng |
patchEntities not works correctly |
# |
Dec 17th 2017, 19:38 |
joop |
or you can use a foreach and save simple entity |
# |
Dec 17th 2017, 19:37 |
joop |
and not a simply entity |
# |
Dec 17th 2017, 19:37 |
joop |
you need to save the Entities |
# |
Dec 17th 2017, 19:37 |
saeideng |
how I can update multi entity ? |
# |
Dec 17th 2017, 19:35 |
joop |
ohm its seems i am the only one here in sunday evening |
# |
Dec 17th 2017, 19:34 |
joop |
i have Tests model with points field,and TestReviews model with fields: pointfrom and pointto |
# |
Dec 17th 2017, 19:30 |
joop |
i am stuck with custome validation role rule |
# |
Dec 17th 2017, 19:30 |
joop |
hello |
# |
Dec 17th 2017, 19:26 |
saeideng |
patchEntities |
# |
Dec 17th 2017, 19:26 |
saeideng |
I think there are bugs in this method |
# |
Dec 17th 2017, 19:19 |
saeideng |
this not works for me |
# |
Dec 17th 2017, 19:19 |
saeideng |
``` // In a controller. $articles = TableRegistry::get('Articles'); $list = $articles->find('popular')->toArray(); $patched = $articles->patchEntities($list, $this->request->getData()); foreach ($patched as $entity) { $articles->save($entity); } ``` |
# |
Dec 17th 2017, 18:44 |
saeideng |
:loudspeaker: |
# |
Dec 17th 2017, 18:39 |
saeideng |
has any sample for form ? |
# |
Dec 17th 2017, 18:39 |
saeideng |
I want to update multi entity at one time |
# |
Dec 17th 2017, 18:33 |
saeideng |
hi |
# |
Dec 17th 2017, 17:43 |
godfath3r |
Hello. I changed my Sqlite DB's "time" field from datetime to timestamp (int), and now cakephp3 renders integers everywhere? How can I fix that to show the local time using my locale? |
# |
Dec 17th 2017, 12:15 |
josexato |
thanks man (y) |
# |
Dec 17th 2017, 12:14 |
admad |
And fetch('script') at bottom of your layout |
# |
Dec 17th 2017, 12:13 |
admad |
@josexato Html->script () with block = true |
# |
Dec 17th 2017, 12:09 |
josexato |
Good morning, whats the best way to add an script (lets say jquery) to a specific view? |
# |
Dec 17th 2017, 10:03 |
rudy1976s |
I have just configure a fresh installation of cake latest, adding Crud,CrudView and Users plugin: my question is: could both Crud and Users plugin works together ? |
# |
Dec 17th 2017, 10:02 |
rudy1976s |
Good morning to all |
# |
Dec 16th 2017, 23:01 |
braeden |
For a Table that is using the TreeBehavior, are there any callbacks/events for when a parent is deleted that has children? It seems only the parent is handled in 'afterDelete'/'beforeDelete' |
# |
Dec 16th 2017, 22:24 |
josexato |
hello in which version of cake 3 the middleware for cors was introduced? |
# |
Dec 16th 2017, 22:10 |
spencdev |
So I got Events up and running, and the event actually consumes an API and doesn't need to receive a response, to the user it wouldn't even matter if it failed, the only thing it would need to do is log it. So to speed it up, and not have the user hang for a second or two, would it be alright to consume the API through cakephp's shell service and just fire an exec? |
# |
Dec 16th 2017, 21:29 |
joopm |
whats wrong with it |
# |
Dec 16th 2017, 21:29 |
joopm |
and i try to save $repositoryReviews |
# |
Dec 16th 2017, 21:29 |
joopm |
$repositoryReviews = $this->RepositoryReviews->patchEntities($repositoryReview, $this->request->getData()); |
# |
Dec 16th 2017, 21:28 |
joopm |
editing many association does not update the id-s insted of create news for them |
# |
Dec 16th 2017, 20:25 |
inoas |
https://gist.github.com/inoas/b8a47dfe532b739ef51d12d36358b618 |
# |
Dec 16th 2017, 20:25 |
inoas |
anyone with pro apache skills - I want to programatically set Content Security Policy headers in .htaccess for the requested domain and all subdomains |
# |
Dec 16th 2017, 17:06 |
dereuromark |
That sounds like a server misconfig, that is a php issue of some sorts then. You could see if you can use any other uuid, e.g.: https://github.com/ramsey/uuid |
# |
Dec 16th 2017, 16:43 |
furqan |
is there any alternate to this method cakeText::uuid() ,that would not take this long |
# |
Dec 16th 2017, 16:42 |
furqan |
any one !!! |
# |
Dec 16th 2017, 16:41 |
furqan |
I know that the uuid ,has to do with the network address of the box ,and it behind the corporate box will have to do with it probably... |
# |
Dec 16th 2017, 16:39 |
furqan |
I logged every line ,and this is the one which is taking 20 seconds to generate a uuid on my office machine -behind corporate proxy ,and the sane code runs on my machine in milli seconds |