Skip to content

Commit

Permalink
Fix ORM mapping (#1676)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 authored Apr 12, 2023
1 parent 914b236 commit 9c28d40
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Resources/config/doctrine/BaseBlock.orm.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="https://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="https://www.w3.org/2001/XMLSchema-instance" schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<mapped-superclass name="Sonata\PageBundle\Entity\BaseBlock">
<field name="name" type="string" column="name" length="255" nullable="true"/>
<field name="type" type="string" column="type" length="255"/>
<field name="settings" type="json" column="settings"/>
<field name="enabled" type="boolean" column="enabled" nullable="true" default="false"/>
<field name="enabled" type="boolean" column="enabled" nullable="true"/>
<field name="position" type="integer" column="position" nullable="true"/>
<field name="createdAt" type="datetime" column="created_at"/>
<field name="updatedAt" type="datetime" column="updated_at"/>
Expand Down
10 changes: 5 additions & 5 deletions src/Resources/config/doctrine/BasePage.orm.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="https://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="https://www.w3.org/2001/XMLSchema-instance" schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<mapped-superclass name="Sonata\PageBundle\Entity\BasePage">
<field name="routeName" type="string" column="route_name" length="255"/>
<field name="pageAlias" type="string" column="page_alias" nullable="true" length="255"/>
<field name="type" type="string" column="type" nullable="true" length="255"/>
<field name="position" type="integer" column="position" default="1"/>
<field name="enabled" type="boolean" column="enabled" default="false"/>
<field name="decorate" type="boolean" column="decorate" default="false"/>
<field name="edited" type="boolean" column="edited" default="false"/>
<field name="position" type="integer" column="position"/>
<field name="enabled" type="boolean" column="enabled"/>
<field name="decorate" type="boolean" column="decorate"/>
<field name="edited" type="boolean" column="edited"/>
<field name="name" type="string" column="name" length="255"/>
<field name="slug" type="text" column="slug" nullable="true"/>
<field name="url" type="text" column="url" nullable="true"/>
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/config/doctrine/BaseSite.orm.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="https://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="https://www.w3.org/2001/XMLSchema-instance" schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.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="enabled" type="boolean" column="enabled"/>
<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="isDefault" type="boolean" column="is_default"/>
<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"/>
Expand Down
8 changes: 4 additions & 4 deletions src/Resources/config/doctrine/BaseSnapshot.orm.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="https://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="https://www.w3.org/2001/XMLSchema-instance" schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<mapped-superclass name="Sonata\PageBundle\Entity\BaseSnapshot">
<field name="routeName" type="string" column="route_name" length="255"/>
<field name="pageAlias" type="string" column="page_alias" nullable="true" length="255"/>
<field name="type" type="string" column="type" nullable="true" length="255"/>
<field name="position" type="integer" column="position" default="1"/>
<field name="enabled" type="boolean" column="enabled" default="false"/>
<field name="decorate" type="boolean" column="decorate" default="false"/>
<field name="position" type="integer" column="position"/>
<field name="enabled" type="boolean" column="enabled"/>
<field name="decorate" type="boolean" column="decorate"/>
<field name="name" type="string" column="name" length="255"/>
<field name="url" type="text" column="url" nullable="true"/>
<field name="parentId" type="integer" column="parent_id" nullable="true"/>
Expand Down

0 comments on commit 9c28d40

Please sign in to comment.