<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <mapped-superclass name="Sonata\PageBundle\Entity\BaseSite">
        <field name="enabled" type="boolean" column="enabled" default="false"/>
        <field name="name" type="string" column="name" length="255"/>
        <field name="relativePath" type="string" column="relative_path" nullable="true" length="255"/>
        <field name="host" type="string" column="host" length="255"/>
        <field name="enabledFrom" type="datetime" column="enabled_from" nullable="true"/>
        <field name="enabledTo" type="datetime" column="enabled_to" nullable="true"/>
        <field name="isDefault" type="boolean" column="is_default" default="false"/>
        <field name="createdAt" type="datetime" column="created_at"/>
        <field name="updatedAt" type="datetime" column="updated_at"/>
        <field name="locale" type="string" column="locale" nullable="true" length="7"/>
        <field name="title" type="string" column="title" nullable="true" length="64"/>
        <field name="metaKeywords" type="string" column="meta_keywords" nullable="true" length="255"/>
        <field name="metaDescription" type="string" column="meta_description" nullable="true" length="255"/>
        <lifecycle-callbacks>
            <lifecycle-callback type="prePersist" method="prePersist"/>
            <lifecycle-callback type="preUpdate" method="preUpdate"/>
        </lifecycle-callbacks>
    </mapped-superclass>
</doctrine-mapping>
