controller instead of model in config_relation #764
-
Model: person and I create two controllers: documents nad people which shows list of documents (with last_name of issuer) and people. But I want to go further. If I choose person of people's list I will go to field.yaml which shows last_name AND the list of documents issued by this person. But the list uses model not controller. of course because it is set in config_relation.html of people's controller.
But I need controller. Because I use ExtendedQuery and ExtendedScope in controller. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
if you use list - the controller uses public function ListExtendQuery($query) BUT THERE'S A BUG! if You use addSelect with ListExtendQuery it works as expected. But addSelect with FormExtendQuery has a little bug You have to add because if not you would got only added fields - no basic fields.... But it isn't what I want. It is very useful if you want to add some information in top part of form, but I have tabs with partials. But that queries are defined elsewhere.. Not know yet. |
Beta Was this translation helpful? Give feedback.
-
@SledgehammerPL I'm not sure what exactly you're trying to do, could you explain it further and / or add screenshots? |
Beta Was this translation helpful? Give feedback.
@SledgehammerPL I'm not sure what exactly you're trying to do, could you explain it further and / or add screenshots?