Hi all,
I need to select all records from a table obtained with an Inner Join:
As I read in other topics, I created 2 DBMRL in this way:
#1- DBMRL connected to table "table_1"
Model ID -> Table1
Load data & Enable associations -> Yes
Associated Models -> Table2
Join Rule -> table_1.id = table_2.id
Where -> table_2.email = 'some_email_address@mydomain'
Fields -> (list of fields I need)
#2- DBMRL connected to table "table_2"
Model Id -> Table2
Load Data & Enable associations -> No
And here is output using print_r2($form->data):
What am I doing wrong????
Regards,
Alessandro
Joomla 1.7.3, CF 4.0 RC3.0
I need to select all records from a table obtained with an Inner Join:
SELECT *
FROM table_1, table_2
WHERE table_1.id = table_2.id
AND table_2.email = 'some_email_address@mydomain'
As I read in other topics, I created 2 DBMRL in this way:
#1- DBMRL connected to table "table_1"
Model ID -> Table1
Load data & Enable associations -> Yes
Associated Models -> Table2
Join Rule -> table_1.id = table_2.id
Where -> table_2.email = 'some_email_address@mydomain'
Fields -> (list of fields I need)
#2- DBMRL connected to table "table_2"
Model Id -> Table2
Load Data & Enable associations -> No
And here is output using print_r2($form->data):
Array
(
[option] => com_chronoforms
[chronoform] => my_form
[Itemid] =>
[Table1] =>
)
What am I doing wrong????
Regards,
Alessandro
Joomla 1.7.3, CF 4.0 RC3.0