-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [ORM] use xml mapping, resolves #501 * [TEST] fix intl icu formatting
- Loading branch information
Showing
12 changed files
with
145 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | ||
<entity name="FormBuilderBundle\Model\DoubleOptInSession" table="formbuilder_double_opt_in_session"> | ||
<indexes> | ||
<index name="token_form" columns="token,form_definition,applied"/> | ||
</indexes> | ||
<id name="token" type="uuid" column="token"> | ||
<generator strategy="CUSTOM"/> | ||
<custom-id-generator class="Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator"/> | ||
</id> | ||
<field name="email" type="string" column="email" length="190" nullable="false"/> | ||
<field name="additionalData" type="array" column="additional_data" nullable="true"/> | ||
<field name="dispatchLocation" type="text" column="dispatch_location" nullable="true"/> | ||
<field name="applied" type="boolean" column="applied"> | ||
<options> | ||
<option name="default">0</option> | ||
</options> | ||
</field> | ||
<field name="creationDate" type="datetime" column="creationDate" nullable="false"/> | ||
<many-to-one field="formDefinition" target-entity="FormBuilderBundle\Model\FormDefinition" fetch="LAZY"> | ||
<join-columns> | ||
<join-column name="form_definition" referenced-column-name="id" on-delete="CASCADE"/> | ||
</join-columns> | ||
</many-to-one> | ||
</entity> | ||
</doctrine-mapping> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | ||
<entity name="FormBuilderBundle\Model\FormDefinition" table="formbuilder_forms"> | ||
<id name="id" type="integer" column="id"> | ||
<generator strategy="AUTO"/> | ||
</id> | ||
<field name="name" type="string" column="`name`" length="190" unique="true" nullable="true"/> | ||
<field name="group" type="string" column="`group`" length="190" nullable="true"/> | ||
<field name="creationDate" type="datetime" column="creationDate" nullable="false"/> | ||
<field name="modificationDate" type="datetime" column="modificationDate" nullable="false"/> | ||
<field name="createdBy" type="integer" column="createdBy"/> | ||
<field name="modifiedBy" type="integer" column="modifiedBy"/> | ||
<field name="configuration" type="object" column="configuration" nullable="true"/> | ||
<field name="conditionalLogic" type="object" column="conditionalLogic" nullable="true"/> | ||
<field name="fields" type="form_builder_fields" column="fields" nullable="true"/> | ||
<one-to-many field="outputWorkflows" target-entity="FormBuilderBundle\Model\OutputWorkflow" mapped-by="formDefinition" | ||
fetch="LAZY"> | ||
<cascade> | ||
<cascade-all/> | ||
</cascade> | ||
</one-to-many> | ||
</entity> | ||
</doctrine-mapping> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | ||
<entity name="FormBuilderBundle\Model\OutputWorkflow" table="formbuilder_output_workflow"> | ||
<unique-constraints> | ||
<unique-constraint name="name_form" columns="name,form_definition"/> | ||
</unique-constraints> | ||
<id name="id" type="integer" column="id"> | ||
<generator strategy="AUTO"/> | ||
</id> | ||
<field name="name" type="string" column="`name`" length="190" nullable="true"/> | ||
<field name="funnelWorkflow" type="boolean" column="funnel_workflow" nullable="false"/> | ||
<field name="successManagement" type="object" column="success_management" nullable="true"/> | ||
<one-to-many field="channels" target-entity="FormBuilderBundle\Model\OutputWorkflowChannel" mapped-by="outputWorkflow" | ||
orphan-removal="true" fetch="LAZY"> | ||
<cascade> | ||
<cascade-all/> | ||
</cascade> | ||
<order-by> | ||
<order-by-field name="id" direction="ASC"/> | ||
</order-by> | ||
</one-to-many> | ||
<many-to-one field="formDefinition" target-entity="FormBuilderBundle\Model\FormDefinition" inversed-by="outputWorkflows" | ||
fetch="LAZY"> | ||
<join-columns> | ||
<join-column name="form_definition" referenced-column-name="id"/> | ||
</join-columns> | ||
</many-to-one> | ||
</entity> | ||
</doctrine-mapping> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | ||
<entity name="FormBuilderBundle\Model\OutputWorkflowChannel" table="formbuilder_output_workflow_channel"> | ||
<unique-constraints> | ||
<unique-constraint name="ow_name" columns="output_workflow,name"/> | ||
</unique-constraints> | ||
<id name="id" type="integer" column="id"> | ||
<generator strategy="AUTO"/> | ||
</id> | ||
<field name="type" type="string" column="type" length="190"/> | ||
<field name="name" type="string" column="name" length="190"/> | ||
<field name="configuration" type="object" column="configuration" nullable="true"/> | ||
<field name="funnelActions" type="object" column="funnel_actions" nullable="true"/> | ||
<many-to-one field="outputWorkflow" target-entity="FormBuilderBundle\Model\OutputWorkflow" inversed-by="channels" | ||
fetch="LAZY"> | ||
<join-columns> | ||
<join-column name="output_workflow" referenced-column-name="id"/> | ||
</join-columns> | ||
</many-to-one> | ||
</entity> | ||
</doctrine-mapping> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.