Skip to content

Instantly share code, notes, and snippets.

@basz
Created May 28, 2015 10:44
Show Gist options
  • Select an option

  • Save basz/f0307fc58c1314ff2730 to your computer and use it in GitHub Desktop.

Select an option

Save basz/f0307fc58c1314ff2730 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<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.xsd">
<entity name="HF\Model\Utility\RecordLock" table="util_recordlock">
<id name="id" type="integer">
<generator strategy="AUTO"/>
</id>
<field name="table_name" type="string" length="64" nullable="false"/>
<field name="row_id" type="integer" nullable="false"/>
<field name="by" type="string" length="64" nullable="false"/>
<field name="until" type="datetime" nullable="false"/>
<field name="reason" type="string" length="256" nullable="true"/>
<unique-constraints>
<unique-constraint name="Unnamed Index" columns="table_name,row_id,by,until"/>
</unique-constraints>
</entity>
</doctrine-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment