I have found a strange bug (behaviour ?) using the belongTo (maybe all relation types?). I will try tomorrow on a fresh installation of Joomla but I doubt it come from there (I have just JCE installed).
The configuration:
Using MagicFactory
Do not create any Model
Create 2 relations belongTo inside a <model> in fof.xml
<field name="foo.title" type="Text"/> will work and display the title but <field name="bar.title" type="Text"/> will not. But if I reorder the relations in fof.xml:
This time only <field name="bar.title" type="Text"/> will be displayed.
So I think only the first relation is activated.
I tried to create the in fof.xml for the relations, but it doesn't change.
But I noticed that if I create the relation models (Model/Bar.php and Model/Foo.php) it will work after that (but well the goal is to use MagicFactory :))
Hi Nic,
I have found a strange bug (behaviour ?) using the
belongTo
(maybe all relation types?). I will try tomorrow on a fresh installation of Joomla but I doubt it come from there (I have just JCE installed).The configuration:
MagicFactory
Model
belongTo
inside a<model>
in fof.xml<field name="foo.title" type="Text"/>
<field name="foo.title" type="Text"/>
will work and display the title but<field name="bar.title" type="Text"/>
will not. But if I reorder the relations in fof.xml:This time only
<field name="bar.title" type="Text"/>
will be displayed.So I think only the first relation is activated.
I tried to create the in fof.xml for the relations, but it doesn't change.
But I noticed that if I create the relation models (Model/Bar.php and Model/Foo.php) it will work after that (but well the goal is to use
MagicFactory
:))