Log message #4122169

# At Username Text
# Mar 6th 2018, 12:27 savant I would just get the phone number if there is an attached communication_Details field
# Mar 6th 2018, 12:27 savant i wouldnt add any querying to that method
# Mar 6th 2018, 12:27 savant add a method to the Contact table
# Mar 6th 2018, 12:26 makallio85 :O Probably didnt get what you mean, how would that be done?
# Mar 6th 2018, 12:26 savant I might add a proxy method for communication_tables->phone_number
# Mar 6th 2018, 12:25 makallio85 @savant Lets say you have contact that has communication_details table related that holds phone numbers and emails for contant. You want to add virtual value phoneNumber to contact. Is that something you would not do?
# Mar 6th 2018, 12:24 siloria ??
# Mar 6th 2018, 12:24 siloria from database
# Mar 6th 2018, 12:24 siloria need help to display image using cakephp
# Mar 6th 2018, 12:13 popperz0r now we have frist and last name
# Mar 6th 2018, 12:13 popperz0r on old days we only worked with emails
# Mar 6th 2018, 12:12 savant lol
# Mar 6th 2018, 12:12 popperz0r but they used to, before :)
# Mar 6th 2018, 12:12 popperz0r none is empty nowadays
# Mar 6th 2018, 12:12 savant if its just a composition though, you can check that at least one of the constituent parts isnt empty?
# Mar 6th 2018, 12:11 savant if it was supposed to be a part of your data model, it should just be in the database somehow.
# Mar 6th 2018, 12:11 savant i generally find virtual fields to be an anti-pattern
# Mar 6th 2018, 12:11 popperz0r im screwed
# Mar 6th 2018, 12:11 popperz0r now i need a condition on full_name :)
# Mar 6th 2018, 12:11 popperz0r :(
# Mar 6th 2018, 12:07 savant @popperz0r not really, no
# Mar 6th 2018, 12:07 savant and I write tests for whatever is necessary
# Mar 6th 2018, 12:07 savant if the data isnt there, I raise an exception
# Mar 6th 2018, 12:06 ghoritrilochan 5.6.34
# Mar 6th 2018, 12:06 savant @makallio85 as I said, I dont use lazy loading. I basically always use a find query, and then in the find query, chain a “default” find
# Mar 6th 2018, 12:06 makallio85 I mean entities relying on associations
# Mar 6th 2018, 12:06 makallio85 @savant Do you have such behavior in your projects and how have you resolved such needs?
# Mar 6th 2018, 12:06 savant @ghoritrilochan what version of php are you running?
# Mar 6th 2018, 12:05 popperz0r virtual properties*
# Mar 6th 2018, 12:05 popperz0r Is it possible to create a model condition based on virtual entities?
# Mar 6th 2018, 12:05 popperz0r Hello
# Mar 6th 2018, 12:03 ghoritrilochan hi.. plz help.. what mining of this error and how to solve this : [05-Mar-2018 21:38:29 UTC] PHP Fatal error: require(): Failed opening required 'C:\Inetpub\vhosts\abc.com\httpdocs/config/requirements.php' (include_path='.;.\includes;.\pear') in C:\Inetpub\vhosts\abc.com\httpdocs\webroot\index.php on line 19
# Mar 6th 2018, 12:03 savant https://github.com/jeremyharris/cakephp-lazyload
# Mar 6th 2018, 12:03 makallio85 Yeah, saw that discussion as well
# Mar 6th 2018, 12:03 savant but as I said, there is a plugin (by one of the core devs) to enable it
# Mar 6th 2018, 12:03 savant we dont think its a great pattern in general
# Mar 6th 2018, 12:03 savant we’ve talked on the core team about enabling lazy loading
# Mar 6th 2018, 12:02 savant no problem
# Mar 6th 2018, 12:00 makallio85 Thanks for your opinion. Generally I was just looking confirmation for my guesses.
# Mar 6th 2018, 11:59 savant so no, I dont think that breaks the idea of an entity
# Mar 6th 2018, 11:59 savant and should be hydrated before use