Log message #4098739

# At Username Text
# Nov 26th 2017, 16:38 joopm if i would like to use the treebehaviour?
# Nov 26th 2017, 16:38 joopm can i have a self association with parent_id
# Nov 26th 2017, 16:37 joopm is anyone tell me that
# Nov 26th 2017, 16:37 joopm hello all
# Nov 26th 2017, 12:39 Jebrini Hi
# Nov 26th 2017, 10:34 birdy247 Morning
# Nov 25th 2017, 23:22 joopm Argument 1 passed to Cake\ORM\Table::save() must implement interface Cake\Datasource\EntityInterface, array given
# Nov 25th 2017, 23:22 joopm but now i get error
# Nov 25th 2017, 23:22 joopm fileUpload(Entity->AssociationofEntity)
# Nov 25th 2017, 23:21 joopm the problem is that i want to call this like:
# Nov 25th 2017, 23:21 joopm fileupload(Entity)..
# Nov 25th 2017, 23:21 joopm its get an entity as for parameter
# Nov 25th 2017, 23:20 joopm i wrote a fileupload function in the AppController
# Nov 25th 2017, 23:20 joopm i faced with the following
# Nov 25th 2017, 23:19 joopm hello
# Nov 25th 2017, 22:15 joopm oh i see,thank you for your help
# Nov 25th 2017, 22:04 dereuromark you would use new if that record is not yet saved
# Nov 25th 2017, 22:04 dereuromark joopm: patch is about adding sth to an existing entity (e.g. from DB)
# Nov 25th 2017, 22:01 joopm i am confused becasue newEntity can also have 'associated'=>.......
# Nov 25th 2017, 22:01 joopm i have to save associations and not sure what should i use
# Nov 25th 2017, 22:01 joopm would you explaim me the difference between PatchEntity and NewEntity ?
# Nov 25th 2017, 22:00 joopm hello all
# Nov 25th 2017, 21:14 dereuromark Write a blog post for all maybe
# Nov 25th 2017, 20:58 bigsista @dereuromark: works like a charm so far. contact me, if you're interested in a proxy config for gulp+browsersync including css stream injection.
# Nov 25th 2017, 20:50 saeideng ``` $entity->addCustomArg(1); echo $entity->custom_field; ```
# Nov 25th 2017, 20:49 saeideng :middle_finger::middle_finger:
# Nov 25th 2017, 20:49 saeideng ``` protected $_custom_arg; public function addCustomArg($_custom_arg){ $this->_custom_arg=$_custom_arg; } protected function _getCustomField() { if($this->_custom_arg==1){ return $this->_properties['field_1']; } if($this->_custom_arg==2){ return $this->_properties['field_2']; } } ```
# Nov 25th 2017, 20:49 saeideng do you think this is true ?
# Nov 25th 2017, 20:44 saeideng @admad I found :slightly_smiling_face: ,thanks , just with implementing a method
# Nov 25th 2017, 20:29 joopm good evening
# Nov 25th 2017, 20:26 saeideng probably with override the `_accessor`
# Nov 25th 2017, 20:25 saeideng for example I need $entity->setRequestObject ()
# Nov 25th 2017, 20:25 saeideng even with extending entity class
# Nov 25th 2017, 20:22 saeideng setVirtual?
# Nov 25th 2017, 20:18 admad no
# Nov 25th 2017, 20:16 saeideng how can I pass arg to virtual field ( getter method ) ?
# Nov 25th 2017, 20:16 saeideng hi
# Nov 25th 2017, 13:36 justcharlz I need help with .htaccess as my site is showing internal server error 500. Upon checking, the error was caused by invalid redirect on .htaccess. My folder structure is sitefolder>appfolder (appfolder where the .htaccess and the main application files are). Using cake3. Moved all the folders and files in the appfolder to the subdomain root directory of my server and still giving me the Error 500
# Nov 25th 2017, 12:33 dereuromark @bigsista: no, but sounds interesting
# Nov 25th 2017, 11:48 Bigsista is anyone currently online using gulp + browsersnc for development?
# Nov 25th 2017, 11:47 Bigsista hi all. ltns