Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additionnal Doctrine annotations column snippets #12

Merged
merged 5 commits into from
May 13, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 81 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,94 @@ class repositoryClass
*/
```

`sfstextcolumn`
`sftextcolumn`

``` php
/**
* @ORM\Column(type="text")
*/
```

`sfintegercolumn`

``` php
/**
* @ORM\Column(type="integer")
*/
```

`sfbooleancolumn`

``` php
/**
* @ORM\Column(type="boolean")
*/
```

`sfsmallintcolumn`

``` php
/**
* @ORM\Column(type="smallint")
*/
```

`sfbigintcolumn`

``` php
/**
* @ORM\Column(type="bigint")
*/
```

`sfdatetimecolumn`

``` php
/**
* @ORM\Column(type="datetime")
*/
```

`sfdatecolumn`

``` php
/**
* @ORM\Column(type="date")
*/
```

`sftimecolumn`

``` php
/**
* @ORM\Column(type="time")
*/
```

`sffloatcolumn`

``` php
/**
* @ORM\Column(type="float")
*/
```

`sfarraycolumn`

``` php
/**
* @ORM\Column(type="array")
*/
```

`sfobjectcolumn`

``` php
/**
* @ORM\Column(type="object")
*/
```

### Twig ###

`sftwigextension`
Expand Down
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_array.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="array")
*/]]></content>
<tabTrigger>sfarraycolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / Array column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_bigint.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="bigint")
*/]]></content>
<tabTrigger>sfbigintcolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / BigInt column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_boolean.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="boolean")
*/]]></content>
<tabTrigger>sfbooleancolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / Boolean column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_date.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="date")
*/]]></content>
<tabTrigger>sfdatecolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / Date column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_datetime.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="datetime")
*/]]></content>
<tabTrigger>sfdatetimecolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / DateTime column doc</description>
</snippet>
4 changes: 2 additions & 2 deletions Snippets/Doctrine/Annotations/column_decimal.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
*/]]></content>
<tabTrigger>sfdecimalcolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / String column doc</description>
</snippet>
<description>Symfony2 / Model / Decimal column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_float.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="float")
*/]]></content>
<tabTrigger>sffloatcolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / Float column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_integer.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="integer")
*/]]></content>
<tabTrigger>sfintegercolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / Integer column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_object.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="object")
*/]]></content>
<tabTrigger>sfobjectcolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / Object column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_smallint.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="smallint")
*/]]></content>
<tabTrigger>sfsmallintcolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / SmallInt column doc</description>
</snippet>
8 changes: 8 additions & 0 deletions Snippets/Doctrine/Annotations/column_time.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[/**
* @ORM\Column(type="time")
*/]]></content>
<tabTrigger>sftimecolumn</tabTrigger>
<scope>source.php</scope>
<description>Symfony2 / Model / Time column doc</description>
</snippet>