XF 2.1 Relations

Robert9

Well-known member
I have set up a new table.
I have setup a relation to XFRM

but my fetch is not:
select from new table ->with relation to RM


instead i need:
select from RM->with relation to my new table.


This means i need an XFRM>Entity>Relation (to my table)?
 
Defining a relation in the structure of Entity A won't allow you to use $entityB->with('entityA') because the relation only exists in the structure of the Entity A object. In your case you'll need to use a code_event_listener or class_extension to add a relation to the Entity you want to manipulate.
 
Back
Top Bottom