Unable to do apply where condition for ParentProperty

Affected version
XF 2.2.1

TickTackk

Well-known member
PHP:
            'ParentProperty' => [
                'type' => self::TO_ONE,
                'entity' => 'XF:StyleProperty',
                'conditions' => ['property_id', '=', '$parent_property_id'],
                'primary' => true
            ]
should be:
PHP:
            'ParentProperty' => [
                'type' => self::TO_ONE,
                'entity' => 'XF:StyleProperty',
                'conditions' => [['property_id', '=', '$parent_property_id']],
                'primary' => true
            ]
In XF:StylePropertyMap entity.
 
Top