# |
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 |
# |
Mar 15th 2018, 09:24 |
saeideng |
and |
# |
Mar 15th 2018, 09:24 |
saeideng |
not in interface |
# |
Mar 15th 2018, 09:24 |
neon1024 |
lol |
# |
Mar 15th 2018, 09:24 |
saeideng |
but in a class |
# |
Mar 15th 2018, 09:24 |
saeideng |
>I would like to implement these methods, which is why I aksed about the implementation details these method implemented |
# |
Mar 15th 2018, 09:23 |
neon1024 |
Do you know what the methods intended functionality is? |
# |
Mar 15th 2018, 09:23 |
neon1024 |
I would like to implement these methods, which is why I aksed about the implementation details |
# |
Mar 15th 2018, 09:23 |
neon1024 |
As they allow the interface to provide soft requirements for implementation in classes which implement the interface, as my class does |
# |
Mar 15th 2018, 09:22 |
neon1024 |
Well sort of, but they also allow backwards compatible updates to the interface |
# |
Mar 15th 2018, 09:22 |
saeideng |
but that for phpstan |
# |
Mar 15th 2018, 09:22 |
saeideng |
I know |
# |
Mar 15th 2018, 09:22 |
neon1024 |
As you can see in the link I provided |
# |
Mar 15th 2018, 09:21 |
neon1024 |
@saeideng They are enforced by the interface |
# |
Mar 15th 2018, 09:14 |
nisseni |
Trying again: Is there a way to see which controller is denying access with the Tools.Tiny plugin? I have the correct settings in my acl file and if I clear the cake cache I get access. When I come back later I have no access again. Can't figure out the problem... It works fine on my local server but not on the test server. |
# |
Mar 15th 2018, 09:13 |
saeideng |
class Query extends DatabaseQuery implements JsonSerializable, QueryInterface |
# |
Mar 15th 2018, 09:11 |
saeideng |
query class |
# |
Mar 15th 2018, 09:11 |
saeideng |
these methods implemented in a class |
# |
Mar 15th 2018, 09:10 |
saeideng |
why you need these methods? |
# |
Mar 15th 2018, 09:10 |
saeideng |
hi |
# |
Mar 15th 2018, 08:55 |
neon1024 |
If I let PHP Storm deal with it, it’ll add the @method docblocks and then put in a __call magic method to catch calls to them, which is utter filth |
# |
Mar 15th 2018, 08:54 |
neon1024 |
Or can I just add and `@method` and be happy? |
# |
Mar 15th 2018, 08:51 |
dakota |
The ORM guru (aka Lorenzo) knows all :) |