Jaxel
Well-known member
Right now I have a relation in my entity based on a 
	
	
	
		
This of course, is assuming the 
Is it possible to put in additional relations, but base them on what the content_type value is? So only relate to threads if the content type is thread, etc?
				
			content_id:
		Code:
	
	    $structure->relations = [
        'Thread' => [
            'entity' => 'XF:Thread',
            'type' => self::TO_ONE,
            'conditions' => 'content_id',
            'primary' => true,
        ],
    ];
	content_type is thread.Is it possible to put in additional relations, but base them on what the content_type value is? So only relate to threads if the content type is thread, etc?