Skip to content

Instantly share code, notes, and snippets.

@crisu83
Created May 6, 2015 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crisu83/86a7364611d713be7793 to your computer and use it in GitHub Desktop.
Save crisu83/86a7364611d713be7793 to your computer and use it in GitHub Desktop.
<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://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">
<entity name="App\Entities\User" table="users">
<id name="surrogateId" type="integer" column="id">
<generator strategy="AUTO" />
</id>
<field name="id" type="string" column="identity" />
<field name="email" type="string" unique="true" />
<field name="password" type="string" />
<field name="createdAt" column="created_at" type="datetime" />
<field name="updatedAt" column="updated_at" type="datetime" />
<field name="deletedAt" column="deleted_at" type="datetime" />
<field name="status" type="integer" />
</entity>
</doctrine-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment