Skip to content

Commit

Permalink
Merge pull request #12 from chadrien/master
Browse files Browse the repository at this point in the history
Additionnal Doctrine annotations column snippets
  • Loading branch information
raulfraile committed May 13, 2013
2 parents f676235 + 614850c commit 1e6c545
Show file tree
Hide file tree
Showing 12 changed files with 163 additions and 3 deletions.
82 changes: 81 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,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>

0 comments on commit 1e6c545

Please sign in to comment.