Log message #4174530

# At Username Text
# Jan 21st 2019, 18:21 ricksaccous so unless you are doing something fancier than inserting stuff there's probably no point
# Jan 21st 2019, 18:21 ricksaccous in that case you could prob just insert with PHP though
# Jan 21st 2019, 18:21 ricksaccous or whatever
# Jan 21st 2019, 18:21 ricksaccous you could prob just give it a class if it has an error and have jquery insert something based on that class
# Jan 21st 2019, 18:20 jhall whats the flow if I want to do something conditional in jquery for an entity field error? So if a field has an error I want to execute some jquery code
# Jan 21st 2019, 17:43 jhall ok
# Jan 21st 2019, 17:43 ricksaccous there's something like that yes
# Jan 21st 2019, 17:43 jhall there has got to be an isnumeric right?
# Jan 21st 2019, 17:43 ricksaccous there is a section near the bottom that linkds to the validation methods
# Jan 21st 2019, 17:43 jhall yeah
# Jan 21st 2019, 17:43 ricksaccous @jhall Validation?
# Jan 21st 2019, 17:42 jhall obviously my zip code can't be aaa
# Jan 21st 2019, 17:42 jhall It must be Monday because I don't see anywhere in the documentation it discusses how to restrict a field to numbers like say its a zip code field
# Jan 21st 2019, 16:16 neon1024 `$unknown instanceof \App\Model\Entity\Example`
# Jan 21st 2019, 16:11 jhall ok
# Jan 21st 2019, 16:11 ricksaccous you can check if the object implements entityInterface or whatever it is
# Jan 21st 2019, 16:11 jhall ah let me check that out
# Jan 21st 2019, 16:10 ricksaccous instanceof is the basic php function you want
# Jan 21st 2019, 16:09 ricksaccous let me see
# Jan 21st 2019, 16:09 ricksaccous if you are not sure at a given time if it will be an object or not
# Jan 21st 2019, 16:09 jhall ok
# Jan 21st 2019, 16:09 a.didier basic php function but it give lots of details
# Jan 21st 2019, 16:08 jhall oh maybe
# Jan 21st 2019, 16:08 a.didier var_dump() ?
# Jan 21st 2019, 16:07 jhall if I want to see if something is an entity
# Jan 21st 2019, 16:07 jhall Is there anything built into cake to check the type of the object or is it just using basic php functions to do so?
# Jan 21st 2019, 15:18 ricksaccous cool, ye let me know if it doesn't work for you
# Jan 21st 2019, 15:16 a.didier looks good i'll test this
# Jan 21st 2019, 15:16 a.didier thx
# Jan 21st 2019, 15:16 a.didier nah i didn't look more than that, lot of stuff to do between the now and the moment i asked XD
# Jan 21st 2019, 14:44 ricksaccous i have that somewhere but at work now and can't grab it easily
# Jan 21st 2019, 14:44 ricksaccous unless you wanted the whole docker-compose
# Jan 21st 2019, 14:43 ricksaccous you probably found antoehr one by now though
# Jan 21st 2019, 14:43 ricksaccous lol
# Jan 21st 2019, 14:42 ricksaccous @a.didier https://github.com/Modicrumb/dockerfiles/blob/master/Dockerfile just change the php version there and tell me if it works, thanks in advance for being my test dummy
# Jan 21st 2019, 13:50 a.didier Cake 2.10.14 or less but with the support of PHP7.3
# Jan 21st 2019, 13:49 a.didier Hello everyone :wave: Does someone have a good dockerfile for a Cake 2.10.14 with PHP7.3 ?
# Jan 21st 2019, 12:31 spriz I feel like the other thing should work now that is’a accessible
# Jan 21st 2019, 12:30 spriz yurp :P Weird thing though :thinking_face:
# Jan 21st 2019, 12:30 neon1024 Guess that’s why! ;)
# Jan 21st 2019, 12:30 neon1024 I did wonder why I always used `$entity->set('thingies', $newEntity)`