Log message #4153836

# At Username Text
# Jun 25th 2018, 16:38 hmic yes. that is what it does
# Jun 25th 2018, 16:37 camden I did see someone mention that as an option. That basically means you just quote the field names like so $query->select('`field-name`'), correct?
# Jun 25th 2018, 16:32 hmic camden, why not just quote the query in question yourself then?
# Jun 25th 2018, 16:11 camden Hello everyone, Is there a way to enable identifier quoting for a single query? I've tried researching it but the method I found doesn't seem to work.
# Jun 25th 2018, 14:58 birdy247 long time
# Jun 25th 2018, 14:58 birdy247 hmic :slightly_smiling_face:
# Jun 25th 2018, 14:24 mikesmoniker IIRC we use `EntityTrait` in some model-esq classes that aren’t regular Cake entities. I don’t have the details on why, exactly, but it seemed to work out well.
# Jun 25th 2018, 14:23 neon1024 Or ask on the forums?
# Jun 25th 2018, 14:23 hmic zmurphy: you could refactor it and open a pr, lets see what the comments are :p
# Jun 25th 2018, 14:23 neon1024 https://en.wikipedia.org/wiki/Composition_over_inheritance
# Jun 25th 2018, 14:23 neon1024 Composition over Inheritance.
# Jun 25th 2018, 14:22 zmurphy It does in the resource class, but again, in that case it could have inherited entity and accomplished the same thing since it doesn't have a parent class
# Jun 25th 2018, 14:22 neon1024 I did miss it
# Jun 25th 2018, 14:22 neon1024 Ahok, https://github.com/UseMuffin/Webservice/blob/72f4e05aff632f9465ab5bb9a6ad653cf48f63b6/src/Model/Resource.php#L12
# Jun 25th 2018, 14:22 neon1024 Let me check, but I don’t recall seeing it
# Jun 25th 2018, 14:21 hmic no? :/
# Jun 25th 2018, 14:21 neon1024 hmic, The Webservice plugin doesn’t use the EntityTrait though
# Jun 25th 2018, 14:21 neon1024 I’d also imagine there is some BC support there
# Jun 25th 2018, 14:20 hmic thats what i said, it's just not used in the core in multiple places. but check the webservice plugin e.g.
# Jun 25th 2018, 14:20 neon1024 Which are not bound to the interface
# Jun 25th 2018, 14:20 neon1024 Plus also allows objects which are not entities to use the methods
# Jun 25th 2018, 14:20 neon1024 So perhaps it’s more about logical separation
# Jun 25th 2018, 14:20 neon1024 As the entity trait are methods which manage the data in an entity
# Jun 25th 2018, 14:19 neon1024 `\Cake\ORM\Entity` and `Cake\Datasource\EntityTrait`
# Jun 25th 2018, 14:19 neon1024 It could be to do with the namespace?
# Jun 25th 2018, 14:18 hmic :p
# Jun 25th 2018, 14:18 hmic not interiting from entity
# Jun 25th 2018, 14:18 zmurphy What would it be used for that couldn't be accomplished by inheriting from entity?
# Jun 25th 2018, 14:15 hmic zmurphy: only because thats the only use in the core framework, does not mean there is nobody using it...
# Jun 25th 2018, 14:09 zmurphy Why does entity trait exist if the only user is Entity? Were there some plans for it at some point?
# Jun 25th 2018, 11:05 willem haha it works, i tried a bake model etc. and it is working great. will need some small modifications i guess. nice job!
# Jun 25th 2018, 10:53 hmic thing is: you need to run on windows if you want to use sqlserver with (cake)php IMHO
# Jun 25th 2018, 10:52 hmic willem: you can configure the ORM to work with your table structure, sure.
# Jun 25th 2018, 10:42 willem What would be the way to set up a situation where i have an existing sqlserver database with tables that do not adhere to the cakephp conventions. I would like to use Cakes ORM to fetch and save data. Is this possible?
# Jun 25th 2018, 10:37 neon1024 Or use your own event?
# Jun 25th 2018, 10:29 unclezoot fair enough
# Jun 25th 2018, 10:27 hmic same like validation errors get passed back e.g.
# Jun 25th 2018, 10:27 hmic unclezoot, the entity
# Jun 25th 2018, 10:24 unclezoot if you wanted to pass diagnostic messages back to the controller via ->afterSave(), where would be the place to do it?
# Jun 25th 2018, 10:15 hmic ;-)
# Jun 25th 2018, 10:10 neon1024 Seems I have a allowMethod(‘get’) in a trait which was included in the controller