<?xml version="1.0" encoding="UTF-8"?>
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping         http://symfony.com/schema/dic/services/constraint-mapping-1.0.xsd">
    <class name="Sonata\NotificationBundle\Model\Message">
        <property name="type">
            <constraint name="NotBlank"/>
        </property>
        <property name="body">
            <constraint name="NotBlank"/>
        </property>
    </class>
</constraint-mapping>
