Log message #4209071

# At Username Text
# Oct 15th 2019, 16:54 challgren https://blog.cpanel.com/removal-of-php-5-6-and-php-7-0-in-easyapache-profiles/
# Oct 15th 2019, 16:53 challgren As its EOL
# Oct 15th 2019, 16:53 challgren I dont even think you can install 5.6 anymore
# Oct 15th 2019, 16:53 challgren Why use 5.6 its dead
# Oct 15th 2019, 16:53 challgren Did you reboot apache/php-fpm
# Oct 15th 2019, 16:52 dev.cyrusjayson I install it, samed error :(
# Oct 15th 2019, 16:52 dev.cyrusjayson I am using 5.6
# Oct 15th 2019, 16:48 slackebot1 <challgren>
# Oct 15th 2019, 16:47 challgren @dev.cyrusjayson you’ll need root access and then go into EasyApache 4 and choose PHP Extensions and then php-xx-php-zip
# Oct 15th 2019, 16:36 dev.cyrusjayson I tried to update the fix like installing it. I am using cpanel, still getting the same error Fatal error: Class 'ZipArchive' not found in
# Oct 15th 2019, 15:10 scuadra I just figured out that there is also getColumnType() which should do the job
# Oct 15th 2019, 15:09 scuadra thank you
# Oct 15th 2019, 15:06 neon1024 `$table->getSchema()->getColumn()`
# Oct 15th 2019, 15:06 neon1024 Check the table schema
# Oct 15th 2019, 15:03 scuadra How can I view the type of table field in Cake 3.x
# Oct 15th 2019, 14:25 daniel.upshaw That looks like exactly the way, that @ndm just showed
# Oct 15th 2019, 14:24 daniel.upshaw At the moment the project I have open is Cake 3.5, `getTable()` may be old
# Oct 15th 2019, 14:24 daniel.upshaw Ah nice!
# Oct 15th 2019, 14:24 ndm ``` $table = \Cake\ORM\TableRegistry::getTableLocator()->get($entity->getSource()); $properties = []; foreach ($table->associations() as $association) { $properties[] = $association->getProperty(); } ```
# Oct 15th 2019, 14:24 daniel.upshaw @val Maybe try `dd(get_class_methods($entity))`
# Oct 15th 2019, 14:14 davorminchorov @neon1024 I am accessing it by example.com/path/to/action.json
# Oct 15th 2019, 14:14 val I wish Entity would have `getAssociationProperties` method
# Oct 15th 2019, 14:13 val Maybe it would be possible to get a list of entity properties that represent columns vs associations from an instance of entity?
# Oct 15th 2019, 14:08 val @daniel.upshaw `getTable()` is not defined in entity
# Oct 15th 2019, 14:06 daniel.upshaw Good luck!!
# Oct 15th 2019, 14:06 daniel.upshaw Ahhh
# Oct 15th 2019, 14:06 neon1024 Anyway, I have a dentist appointment :wave:
# Oct 15th 2019, 14:05 neon1024 Knowing if an entity property exists would just be `$entity->has('property')`
# Oct 15th 2019, 14:05 daniel.upshaw Maybe `$entity->getTable()->associations()`
# Oct 15th 2019, 14:05 neon1024 Are you sure this can’t be achieved with entity mutator methods?
# Oct 15th 2019, 14:04 neon1024 Feels more like a repository method to me
# Oct 15th 2019, 14:04 neon1024 I don’t know how to do that, sorry, it’s not what I’ve ever needed to do in an entity
# Oct 15th 2019, 14:04 neon1024 As I’m sure it’s configured as ‘propertyName’ in the association config
# Oct 15th 2019, 14:04 val From an instance of entity
# Oct 15th 2019, 14:04 neon1024 Then once you have the association it would be `$this->property` I think
# Oct 15th 2019, 14:03 val Yes, associated properties
# Oct 15th 2019, 14:03 daniel.upshaw ``` $associations = []; foreach ($table->associations() as $key => $association) { $associations[] = $association->getName(); }```
# Oct 15th 2019, 14:03 neon1024 Which is `$this->associations()`
# Oct 15th 2019, 14:02 neon1024 So you’d want to traverse the table associations
# Oct 15th 2019, 14:02 neon1024 They would be configured in the Table class association instances
# Oct 15th 2019, 14:02 neon1024 Do you mean associated properties/