# |
Dec 2nd 2019, 17:06 |
dereuromark |
@neon1024 you cannot |
# |
Dec 2nd 2019, 17:04 |
slackebot |
is included in the JSON as well. |
# |
Dec 2nd 2019, 17:04 |
noel |
@ndm @dereuromark there's a relationship on the entity but it seems to be not seeing it somehow. The JSON object that is being processed by the `->getRepository` call is being written with a hyphen instead of an underscore. E.g. ```{ ... "enquiry-type": null }, "enquiry-type"``` ... but I don't understand why. There is a belongsTo relationship between `enquiry` and `enquiry_type` tables via the `enquiry_type_id` ; the value for which which |
# |
Dec 2nd 2019, 17:02 |
neon1024 |
Although it is a snapshot, could probably set 7.4.0 for that now in the travis.yml |
# |
Dec 2nd 2019, 17:01 |
slackebot |
<neon1024> |
# |
Dec 2nd 2019, 17:01 |
neon1024 |
Doesn’t run on 7.4 |
# |
Dec 2nd 2019, 17:00 |
neon1024 |
@cakebot travis is https://travis-ci.org/cakephp |
# |
Dec 2nd 2019, 17:00 |
slackebot |
!travis |
# |
Dec 2nd 2019, 16:59 |
slackebot |
Command sent from Slack by neon1024: |
# |
Dec 2nd 2019, 16:54 |
dereuromark |
looking into the travis file per build would have easily told u |
# |
Dec 2nd 2019, 16:54 |
dereuromark |
2.x, 3.x and 4.x |
# |
Dec 2nd 2019, 16:53 |
alexmax |
Does 3.8 support it? |
# |
Dec 2nd 2019, 16:53 |
alexmax |
PHP 7.4 came out a few days ago |
# |
Dec 2nd 2019, 16:44 |
lucas.iturbide |
alright.. it came back to life |
# |
Dec 2nd 2019, 16:33 |
lucas.iturbide |
Hi, is it me or the website https://cakephp.org/ is not loading with the error `ERR_SSL_VERSION_OR_CIPHER_MISMATCH` ? |
# |
Dec 2nd 2019, 16:06 |
devito |
@ricksaccous its only 1 deep and its ahas one relationship and for some reason the validation rules arent being triggered on the profile. But if i move the validators to the user model and add nested its fine. |
# |
Dec 2nd 2019, 16:02 |
neon1024 |
https://book.cakephp.org/3/en/orm/saving-data.html#converting-request-data-into-entities |
# |
Dec 2nd 2019, 16:01 |
neon1024 |
Other ones you specify with the ‘associated’ key in the options array of `patchEntity` |
# |
Dec 2nd 2019, 16:01 |
neon1024 |
1st level associations will be saved automatically iirc |
# |
Dec 2nd 2019, 16:00 |
david |
but I can't see the way |
# |
Dec 2nd 2019, 16:00 |
david |
I am trying to save an additional field in the relationship table |
# |
Dec 2nd 2019, 15:59 |
ricksaccous |
also depends how the data is being set i think, meh |
# |
Dec 2nd 2019, 15:59 |
ricksaccous |
might have to cascadeCallbacks |
# |
Dec 2nd 2019, 15:58 |
david |
is there a way to trigger the "beforeMarshal" in the RelationShipTable.php of a belongstomany relationship? |
# |
Dec 2nd 2019, 15:48 |
ricksaccous |
i think if it's too deep it won't unless you specify |
# |
Dec 2nd 2019, 15:48 |
ricksaccous |
depending on the nature of the relationship |
# |
Dec 2nd 2019, 15:48 |
ricksaccous |
if you don't put any validation options in by default it will |
# |
Dec 2nd 2019, 15:46 |
devito |
like if i do patch entity on a user and pass in data for the profile as well |
# |
Dec 2nd 2019, 15:46 |
devito |
when creating a new entity that has associations, will the associated data be validated or just the primary entity that was instanciated? |
# |
Dec 2nd 2019, 15:44 |
neon1024 |
It’s fine to ask questions, but it’s also worth have a read of the documentation first :thumbsup: |
# |
Dec 2nd 2019, 15:43 |
gianmarxgagliardi |
I didn't want to take advantage of your availability or community |
# |
Dec 2nd 2019, 15:42 |
gianmarxgagliardi |
sorry @neon1024 |
# |
Dec 2nd 2019, 15:42 |
gianmarxgagliardi |
I will reread the tutorial |
# |
Dec 2nd 2019, 15:40 |
gianmarxgagliardi |
having said that I am a beginner in cake |
# |
Dec 2nd 2019, 15:39 |
gianmarxgagliardi |
I read the tutorials, but I never understood how important the conventions were |
# |
Dec 2nd 2019, 15:39 |
neon1024 |
..and your question is the same, almost as last time, about loading a table class |
# |
Dec 2nd 2019, 15:38 |
neon1024 |
Or at least, you’re not adhering to convention ay all |
# |
Dec 2nd 2019, 15:37 |
neon1024 |
Which is why I wonder if you have followed the tutorial, as you’re making lots of very basic beginner mistakes |
# |
Dec 2nd 2019, 15:37 |
neon1024 |
Again, you’ve missed convention. Foreign keys are `table_id` you’ve got `id_dogs` rather than `dog_id` |
# |
Dec 2nd 2019, 15:35 |
gianmarxgagliardi |
Yes, I read. but on some things I have doubts |
# |
Dec 2nd 2019, 15:32 |
neon1024 |
Especially as baked models and templates will do all this for you |