src/Sulu/Bundle/AudienceTargetingBundle/Serializer/Subscriber/TargetGroupRuleSerializeSubscriber.php
public function onPostDeserialize(ObjectEvent $event)
    {
        /** @var TargetGroupRuleInterface $targetGroupRule */
        $targetGroupRule = $event->getObject();

        if (!$targetGroupRule instanceof TargetGroupRuleInterface) {
            return;
        }

        if ($targetGroupRule->getConditions()) {
            foreach ($targetGroupRule->getConditions() as $condition) {
                $condition->setRule($targetGroupRule);
            }
        }
    }
public function onPostDeserialize(ObjectEvent $event)
    {
        /** @var TargetGroupRuleInterface $targetGroupRule */
        $targetGroupRule = $event->getObject();

        if (!$targetGroupRule instanceof TargetGroupRuleInterface) {
            return;
        }

        if ($targetGroupRule->getConditions()) {
            foreach ($targetGroupRule->getConditions() as $condition) {
                $condition->setRule($targetGroupRule);
            }
        }
    }
public function onPostDeserialize ( ObjectEvent $ event ) { /** @var TargetGroupRuleInterface $targetGroupRule */ $ targetGroupRule = $ event -> getObject ( ) ; if ( ! $ targetGroupRule instanceof TargetGroupRuleInterface ) { return ; } if ( $ targetGroupRule -> getConditions ( ) ) { foreach ( $ targetGroupRule -> getConditions ( ) as $ condition ) { $ condition -> setRule ( $ targetGroupRule ) ; } } }
Called after a target group rule was deserialized.

@param ObjectEvent $event
Called after a target group rule was deserialized .