# |
Mar 15th 2018, 10:14 |
johnwayne |
The problem is when we have a lot of data, then is too slow because in foreach loop he make update each time after price is matched |
# |
Mar 15th 2018, 10:13 |
johnwayne |
Hello, does anybody can help me with refactoring bulk update... here is working solution https://pastebin.com/Wr7cseQj |
# |
Mar 15th 2018, 09:52 |
sandeep556 |
Ok |
# |
Mar 15th 2018, 09:51 |
sandeep556 |
like i want to change city state from Brazil to ... |
# |
Mar 15th 2018, 09:51 |
sandeep556 |
Yes i did this but how to change from one scope to other |
# |
Mar 15th 2018, 09:51 |
saeideng |
you can not move nodes from one scope to other scope IMO |
# |
Mar 15th 2018, 09:50 |
saeideng |
you can separate tree(s) with `scope` |
# |
Mar 15th 2018, 09:49 |
sandeep556 |
Ok thanks |
# |
Mar 15th 2018, 09:49 |
neon1024 |
All I can think is that you would need to regenerate the tree afterwards, but I’ve no idea if that would work. |
# |
Mar 15th 2018, 09:48 |
neon1024 |
Sorry @sandeep556 I’ve not tried that with the TreeBehaviour |
# |
Mar 15th 2018, 09:48 |
sandeep556 |
is it possible with tree view or not? |
# |
Mar 15th 2018, 09:48 |
sandeep556 |
@dakota, @neon1024: any one of you plz help |
# |
Mar 15th 2018, 09:43 |
sandeep556 |
This is what i did till now: https://gist.github.com/nakoda/489a3292c4ac17cda227b34a79f89321 |
# |
Mar 15th 2018, 09:43 |
sandeep556 |
plz help |
# |
Mar 15th 2018, 09:42 |
sandeep556 |
left and right is not calculated properly and also how to update all child to other tree |
# |
Mar 15th 2018, 09:42 |
sandeep556 |
Plz help, I tried it from last many hrs but did not get success. |
# |
Mar 15th 2018, 09:40 |
sandeep556 |
How to use Multi Tree where we can move nodes from one tree to another |
# |
Mar 15th 2018, 09:35 |
saeideng |
`andHaving` == `having` |
# |
Mar 15th 2018, 09:34 |
saeideng |
`andWhere` == `where` |
# |
Mar 15th 2018, 09:33 |
saeideng |
`andWhere` == `where` |
# |
Mar 15th 2018, 09:32 |
neon1024 |
Super, thanks @dakota |
# |
Mar 15th 2018, 09:32 |
dakota |
Not entirely sure about `andWhere` vs `where`, but I think it’s for adding a complex expression to an already complex expression |
# |
Mar 15th 2018, 09:31 |
dakota |
`select` is for selecting which fields to return |
# |
Mar 15th 2018, 09:29 |
dakota |
don’t really use it though |
# |
Mar 15th 2018, 09:29 |
dakota |
Seems like it’s just a shortcut/alias for `where()` |
# |
Mar 15th 2018, 09:29 |
saeideng |
yes we are 2 class for query |
# |
Mar 15th 2018, 09:29 |
dakota |
That’s for andWhere |
# |
Mar 15th 2018, 09:29 |
dakota |
``` * Connects any previously defined set of conditions to the provided list * using the AND operator. This function accepts the conditions list in the same * format as the method `where` does, hence you can use arrays, expression objects * callback functions or strings. |
# |
Mar 15th 2018, 09:29 |
neon1024 |
Oh right, I was looking in the wrong class! |
# |
Mar 15th 2018, 09:29 |
dakota |
``` |
# |
Mar 15th 2018, 09:28 |
dakota |
They are in \Cake\Database\Query |
# |
Mar 15th 2018, 09:28 |
neon1024 |
As they are not yet implemented into \Cake\ORM\Query, for me to read and understand |
# |
Mar 15th 2018, 09:27 |
neon1024 |
I’d like to know what they’re intended functionality is so that I can implement them into my class |
# |
Mar 15th 2018, 09:27 |
neon1024 |
I’m creating a Query class which implements the QueryInterface. The interface specifies a soft implementation of these methods, https://github.com/cakephp/cakephp/blob/master/src/Datasource/QueryInterface.php#L21-L22 |
# |
Mar 15th 2018, 09:26 |
dakota |
@neon1024 Haven’t been following, but what’s the issue :slightly_smiling_face: |
# |
Mar 15th 2018, 09:25 |
neon1024 |
Which frankly, I find a little frustrating |
# |
Mar 15th 2018, 09:25 |
neon1024 |
Rather than repeating what I just said back at me |
# |
Mar 15th 2018, 09:25 |
neon1024 |
Indeed, so how about answering my question? |
# |
Mar 15th 2018, 09:25 |
saeideng |
we can not add those to interface now |
# |
Mar 15th 2018, 09:25 |
neon1024 |
Thanks for trying. |
# |
Mar 15th 2018, 09:24 |
neon1024 |
Okay, I think we’ll leave it there. We are going round in circles |