

#1
Posted 01 March 2013 - 03:34 AM
#2
Posted 03 March 2013 - 10:49 AM
Within your set_relation_n_n function call use just that "{name} {description}".
#3
Posted 05 March 2013 - 01:43 AM
#4
Posted 05 March 2013 - 09:42 AM
Ooo ok! Now I get it! Sorry.
I thought I had a solution but it was wrong.
Let me think of it...
Edited by davidoster, 05 March 2013 - 10:01 AM.
#5
Posted 05 March 2013 - 10:11 AM
Can you print out your controller's code?
I don't fully understand how you implement this system.
For example, your product table has the id,price.
How do you insert the name/description of a specific product?
To be honest with you I would have changed your product table a little bit but this would help me a lot with the design.
table product
id,name,description,price
(name, description here use a default let's say english name/description)
but by doing this then I could use a simple set_relation to show up the multilingual name/description from the product_lang table!
What do you think about this?
In essence what you have here is a Master(product) / Detail (product_lang) structure and this is not yet supported by GC library.
But you could achieve the same functionality like this.
REMEMBER you need to callback_before_insert / callback_before_update in order to update both the product table and the product_lang table!
Edited by davidoster, 05 March 2013 - 10:16 AM.
Also tagged with one or more of these keywords: set_relation_n_n, many to many, how to
Support →
Bugs / Issues →
set_relation_n_n doesn't work with custom callbacksStarted by infinitesunrise, 03 Jan 2020 ![]() |
|
![]() |
||
Support →
Grocery CRUD Enterprise →
set_relation_n_n - retrieve information from another tableStarted by lraifort, 22 Nov 2019 ![]() |
|
![]() |
||
Support →
I have a question →
Create two Search FiltersStarted by Luiz Gonçalves, 05 Oct 2017 ![]() |
|
![]() |
||
Support →
I have a question →
two columns in set_relation_n_nStarted by Robson, 05 Oct 2016 ![]() |
|
![]() |
||
Support →
General →
help set_relation_n_nStarted by elitebook190, 29 Sep 2016 ![]() |
|
![]() |
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users