Log message #4165170

# At Username Text
# Aug 6th 2018, 20:09 chris-andre @mikesmoniker Shouldn't be any problem. Extend TestCase for unittests and IntegrationTestCase for integration, and you'll be fine.
# Aug 6th 2018, 19:51 mikesmoniker I suppose I’d break `bin/cake bake test ...`.
# Aug 6th 2018, 19:40 mikesmoniker I’m looking at splitting my tests into something like `tests/TestCase/{Unit,Integration,etc.}/*`. I can’t think of any reason that would be a problem with Cake, but I figured I’d ask the audience.
# Aug 6th 2018, 19:24 edgaras.jan @amran08 As alternate, you can send emails via Sendgrid SMTP using CakePHP core SmtpTransport
# Aug 6th 2018, 19:13 ricksaccous no problem
# Aug 6th 2018, 19:02 amran08 I didn't know the rules /practice here
# Aug 6th 2018, 19:02 amran08 Extremely sorry
# Aug 6th 2018, 19:01 ricksaccous it's better to ask the whole channel than target someone
# Aug 6th 2018, 19:00 ricksaccous it's more that you asked for help from a specific person than people in general
# Aug 6th 2018, 18:59 amran08 you guys are down voting :(
# Aug 6th 2018, 18:59 amran08 I thought I could get help from you guys
# Aug 6th 2018, 18:58 amran08 what's wrong with asking help ?
# Aug 6th 2018, 17:47 chris-andre WorkEmail uses EmailsTable class.
# Aug 6th 2018, 17:46 dwms @admad help me
# Aug 6th 2018, 17:46 slackebot work_email/emails, I want to put the logic in EmailsTable. Is the right approach to this logic by unsetting property in Emails::beforeSave() if it is empty, and in afterSave(), check if email is empty, and if so, delete the record?
# Aug 6th 2018, 17:46 chris-andre @admad My explanation is wrong. What I'm trying to solve is: When adding a contact and leaving 'work_email'-field empty, I don't want to save a new record in the Emails table. Also, if a contact with a work_email is being edited, where email is left empty on update, than the emails-record should be deleted. So that being said, I don't want records in Emails table where email is empty/null. As It's not only Contacts hasOne/Many
# Aug 6th 2018, 17:34 admad @chris-andre did you try just setting the property to `null` ?
# Aug 6th 2018, 17:30 dwms Inclusion of relationships in index() action not work in crud-json-api
# Aug 6th 2018, 17:30 dwms help me
# Aug 6th 2018, 16:52 chris-andre In beforeSave, is there a way I can unset/delete the entity object (stop it from being saved) without destroying the rest of the transactions? `if($entity->work_email->isNew() andand empty($entity->work_email->email)) { /* don't save this entity */ }`
# Aug 6th 2018, 16:50 ricksaccous gotcha
# Aug 6th 2018, 16:50 flavius the getters and setters were added "recently", that's why the functions that did both were deprecated :slightly_smiling_face:
# Aug 6th 2018, 16:44 ricksaccous for some reason i just assumed that the function has been there a while, shnappp
# Aug 6th 2018, 16:41 flavius lul :P
# Aug 6th 2018, 16:33 ricksaccous I'll update that when I get home danggg
# Aug 6th 2018, 16:32 ricksaccous @flavius thanks man
# Aug 6th 2018, 16:24 birdy247 but want to actual Classname
# Aug 6th 2018, 16:24 birdy247 I can get the Alias
# Aug 6th 2018, 16:24 birdy247 Is there a way to get the Table ClassName from a behaviour
# Aug 6th 2018, 16:14 amran08 https://gist.github.com/amran08/fcaf73ab92e5350e9ef7ca7400726bf6
# Aug 6th 2018, 16:14 amran08 hi @dereuromark.Can you please take a look at this problem?
# Aug 6th 2018, 16:01 slackebot wasn't sure if the error would show up in that case
# Aug 6th 2018, 16:01 zmurphy When adding rules in a rules checker, how does it handle an errorField that's not actually an entity property? In my case, I have a rule that checks the count of several of an entity's associations in relation with each other (ie if you have 1 of this, you can only have at most 3 of this, etc) so there's no single property to actually set the error on, I was going to do something like set it on 'associations' or something of that sort, but
# Aug 6th 2018, 15:51 flavius https://github.com/cakephp/cakephp/blame/abbb678b23de16d0e4d15367804d7ae741510842/src/Http/Response.php#L1145
# Aug 6th 2018, 15:50 flavius that was added 10 months ago
# Aug 6th 2018, 15:49 flavius you're talking about `getType()`? Update your cakephp version :slightly_smiling_face:
# Aug 6th 2018, 15:35 ricksaccous what am i doing wrong here? besides everything https://github.com/FriendsOfCake/cakephp-csvview/pull/92
# Aug 6th 2018, 14:36 dwms Inclusion in index() action not work in crud-json-api
# Aug 6th 2018, 14:36 dwms ola
# Aug 6th 2018, 14:15 ricksaccous my conditional validation wasn't running, I don't think notBlank accepts a third parameter
# Aug 6th 2018, 14:15 ricksaccous but that was the problem