Log message #4143162

# At Username Text
# May 23rd 2018, 07:45 k4t yeah, looksl ike this is the only way
# May 23rd 2018, 07:45 nitishkumardiwakar Ok, but can you provide some hint
# May 23rd 2018, 07:44 neon1024 @nitishkumardiwakar Sorry, I don’t have the patience to help you today.
# May 23rd 2018, 07:44 nitishkumardiwakar @neon1024 As you told yesterday, adding belongsTo will effect in inserting data. I am facing this now. How can I solve this?
# May 23rd 2018, 07:42 neon1024 @k4t You could write your own Logger class for that I would imagine
# May 23rd 2018, 07:39 k4t is it possible with Cake to rotate its logs after X days?
# May 23rd 2018, 07:39 k4t hi
# May 23rd 2018, 07:35 nitishkumardiwakar Somebody please help. I am stucked
# May 23rd 2018, 06:34 nitishkumardiwakar How can I insert id of table2 while inserting form in table1?
# May 23rd 2018, 06:23 nitishkumardiwakar Yes it is hiding when adding belongsTo
# May 23rd 2018, 06:21 tim It makes no sense that the ID would not be in the form data when changing the relations. You need to check the formdata in the browser (in Chrome, use developer tools). If the ID is included there, then you need to check further
# May 23rd 2018, 06:19 nitishkumardiwakar @tim Is there any solution for it?
# May 23rd 2018, 06:18 nitishkumardiwakar without belongs to inner join, is not working, and with belongsTo id of table 2 (sizes) is not inserting in table 1 (products)
# May 23rd 2018, 06:17 nitishkumardiwakar in products table there is (id, name, size_id) and in sizes table there is (id, name)
# May 23rd 2018, 06:15 nitishkumardiwakar belongsTo
# May 23rd 2018, 06:15 tim Whats the relation in the ProductsTable?
# May 23rd 2018, 06:12 nitishkumardiwakar and when I remove belongsTo fields (id of other table) is showing
# May 23rd 2018, 06:12 nitishkumardiwakar I've checked form data. when there is belongsTo added in model, then fields are not showing in (print_r)
# May 23rd 2018, 06:11 nitishkumardiwakar id of another table is inserting if i remove belongsTo, but with belongsTo id of another table is not inserting
# May 23rd 2018, 06:07 tim Check what the value of the options are. They need to be the IDs of the second entity you are inserting. If that's correct, check your form data while submitting
# May 23rd 2018, 06:05 nitishkumardiwakar values are not inserting after belongsTo added in modal
# May 23rd 2018, 05:53 nitishkumardiwakar ?
# May 23rd 2018, 05:08 nitishkumardiwakar how can I insert id of another table from select box? Values are displaying in select box, but their id is not inserting.
# May 23rd 2018, 05:02 nitishkumardiwakar but I am unable to insert id of second table
# May 23rd 2018, 05:01 nitishkumardiwakar yes association is setup. Its working in inner join
# May 23rd 2018, 05:01 dakota What does the data that you are inserting look like, and do you have the associations setup correctly?
# May 23rd 2018, 04:50 nitishkumardiwakar I've two table ('products' and 'sizes') in products tables: ('size_id') and in sizes table there is id and 'name' Now while inserting product 'size_id' is not inserting
# May 22nd 2018, 23:49 mphyu037 File uploaded https://cakesf.slack.com/files/UATSXJ69F/FATTDV3UH/error.png / https://slack-files.com/T053DPNCM-FATTDV3UH-df651c7bc4
# May 22nd 2018, 23:49 mphyu037 hello everyone,I'm a new member.I have an error to start study cake framework.Pls help me.
# May 22nd 2018, 22:17 joopm is anyone who is more familier with csrf token?
# May 22nd 2018, 22:16 joopm hello
# May 22nd 2018, 21:08 ricksaccous np ;)
# May 22nd 2018, 21:08 itmpls and that would make it far easier if I don't.. checking. ty :slightly_smiling_face:
# May 22nd 2018, 21:08 itmpls ah yeah, hm I think I needed to preprocess them but I actually might not have to
# May 22nd 2018, 21:07 ricksaccous i'd assume it would automatically work on each record in the entity
# May 22nd 2018, 21:07 ricksaccous @itmpls, https://book.cakephp.org/3.0/en/orm/validation.html#using-a-different-validation-set-for-associations
# May 22nd 2018, 21:05 ricksaccous i believe once you create an entity there are options you could pass so that associations are validated
# May 22nd 2018, 21:03 itmpls in a foreach
# May 22nd 2018, 21:03 itmpls i'm currently just constructing a time object and catching for invalidity
# May 22nd 2018, 21:03 itmpls is there anyway to access the 'date' built-in validation rule if you're processing on a hasMany - thus multiple elements that have a date (and time, separately) for validation?
# May 22nd 2018, 20:37 camdenbassett ok, that might be the way I need to go. Thanks :)