# |
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 :) |
# |
May 22nd 2018, 20:37 |
generitter |
If you look on github at the Bake library you could find example code. |
# |
May 22nd 2018, 20:36 |
generitter |
There are Cake Directory and File objects you could use to scan for Model directories and files. |
# |
May 22nd 2018, 20:36 |
camdenbassett |
ok, hmmm... Maybe I can just parse the file names or something. |
# |
May 22nd 2018, 20:35 |
generitter |
Right. |
# |
May 22nd 2018, 20:35 |
camdenbassett |
ok, cool didn't know that. I'm looking for a way to do it in php though, and cake bake is command line, right? |
# |
May 22nd 2018, 20:33 |
generitter |
All the models … hmm. cake bake model still spits out a list for you to pick from. |
# |
May 22nd 2018, 20:32 |
camdenbassett |
Is there a way to get a list of all the models in your app? |
# |
May 22nd 2018, 20:32 |
generitter |
Oi AssetCompress is not loading the CrudView assets. Dies on missing route. :P |
# |
May 22nd 2018, 19:26 |
bravo-kernel |
I can imagine supporting it if Crud can |
# |
May 22nd 2018, 19:25 |
ksc |
Ok that's sad. Is this a problem of the crud plugin or the crud-json-api plugin? I think the requests with directly created associations have at least once worked with the normal crud plugin. I will test it later. Is that a feature that would be integrated regardless of the jsonapi specification or should the crud-json-api plugin 1 to 1 map the jsonapi specification? |
# |
May 22nd 2018, 19:21 |
camdenbassett |
They wouldn't necessarily all be used at the same time, but I just want to make sure that it won't bring down my site if I have a ton of different cache configurations. |
# |
May 22nd 2018, 19:19 |
camdenbassett |
Hello everyone, if I'm using memcached, is there any danger of having too many configurations? Basically I have some code that creates a set of configuration entries for each combination of user and model, so if I had 300 users, 20 models, and 5 different configurations that would be 300 x 20 x 5 = 30,000 different potential configuration entries. |
# |
May 22nd 2018, 19:12 |
bravo-kernel |
> posting a document with links present will associate it to the linked resource(s). However, creating multiple entities that are interlinked with a single POST is impossible at the moment. |
# |
May 22nd 2018, 19:11 |
bravo-kernel |
https://github.com/json-api/json-api/issues/202 |