I am trying to use the Relations Conditions field with a model related to the primary model. However, I can't seem to get it to work. The primary model is called Content. The related model is called Traits. I am trying to call all Traits that have a content_id field = to each Content id, and that have a category_id = to a variable I will be pulling from another model using $this->get('other_model...') (but for now I am just using a single number to figure out the correct syntax).
I put this in the Relations Conditions field:
Traits.content_id:Content.id
Traits.category_id:19
But I am just getting an unknown column error. I have attached an image of the read data form as well.
Any help is appreciated!
Thanks -
-Brian
I put this in the Relations Conditions field:
Traits.content_id:Content.id
Traits.category_id:19
But I am just getting an unknown column error. I have attached an image of the read data form as well.
Any help is appreciated!
Thanks -
-Brian