Skip to content

Commit

Permalink
Adding php syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
jwage committed Jun 17, 2010
1 parent 53ec070 commit cc2d84c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions manual/en/annotations-reference.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Optional attributes:

Examples:

[php]
/**
* @Column(type="string", length=32, unique=true, nullable=false)
*/
Expand Down Expand Up @@ -85,6 +86,7 @@ can be found in the configuration section.

Example:

[php]
/**
* @Entity
* @ChangeTrackingPolicy("DEFERRED_IMPLICIT")
Expand Down Expand Up @@ -116,6 +118,7 @@ an array as only argument which defines which class should be saved under which
are the database value and values are the classes, either as fully- or as unqualified class names depending
if the classes are in the namespace or not.

[php]
/**
* @Entity
* @InheritanceType("JOINED")
Expand All @@ -139,6 +142,7 @@ Optional attributes:

Example:

[php]
/**
* @Entity(repositoryClass="MyProject\UserRepository")
*/
Expand All @@ -161,6 +165,7 @@ Required attributes:

Example:

[php]
/**
* @Id
* @Column(type="integer")
Expand All @@ -177,6 +182,7 @@ callback annotations set on at least one of its methods. Using @PostLoad, @PrePe

Example:

[php]
/**
* @Entity
* @HasLifecycleCallbacks
Expand All @@ -203,6 +209,7 @@ Required attributes:

Example:

[php]
/**
* @Entity
* @Table(name="ecommerce_products",indexes={@index(name="search_idx", columns={"name", "email"})})
Expand All @@ -220,6 +227,7 @@ identifier columns each column has to be marked with @Id.

Example:

[php]
/**
* @Id
* @Column(type="integer")
Expand All @@ -237,6 +245,7 @@ This annotation has always been used in conjunction with the [@DiscriminatorMap]

Examples:

[php]
/**
* @Entity
* @InheritanceType("SINGLE_TABLE")
Expand Down Expand Up @@ -281,6 +290,7 @@ Optional attributes:

Example:

[php]
/**
* @OneToOne(targetEntity="Customer")
* @JoinColumn(name="customer_id", referencedColumnName="id")
Expand Down Expand Up @@ -312,6 +322,7 @@ Optional attributes:

Example:

[php]
/**
* @ManyToMany(targetEntity="Phonenumber")
* @JoinTable(name="users_phonenumbers",
Expand All @@ -338,6 +349,7 @@ Optional attributes:

Example:

[php]
/**
* @ManyToOne(targetEntity="Cart", cascade="ALL", fetch="EAGER")
*/
Expand Down Expand Up @@ -368,6 +380,7 @@ Optional attributes:

Example:

[php]
/**
* Owning Side
*
Expand Down Expand Up @@ -417,6 +430,7 @@ owning instance, should be removed by Doctrine. Defaults to false.

Example:

[php]
/**
* @OneToOne(targetEntity="Customer")
* @JoinColumn(name="customer_id", referencedColumnName="id")
Expand All @@ -439,6 +453,7 @@ owning instance, should be removed by Doctrine. Defaults to false.

Example:

[php]
/**
* @OneToMany(targetEntity="Phonenumber", mappedBy="user", cascade={"persist", "remove", "merge"}, orphanRemoval=true)
*/
Expand All @@ -455,6 +470,7 @@ This annotation requires a single non-attributed value with an DQL snippet:

Example:

[php]
/**
* @ManyToMany(targetEntity="Group")
* @OrderBy({"name" = "ASC"})
Expand Down Expand Up @@ -519,6 +535,7 @@ Optional attributes:

Example:

[php]
/**
* @Id
* @GeneratedValue(strategy="SEQUENCE")
Expand All @@ -545,6 +562,7 @@ Optional attributes:

Example:

[php]
/**
* @Entity
* @Table(name="user",
Expand All @@ -568,6 +586,7 @@ Required attributes:

Example:

[php]
/**
* @Entity
* @Table(name="ecommerce_products",uniqueConstraints={@UniqueConstraint(name="search_idx", columns={"name", "email"})})
Expand All @@ -584,6 +603,7 @@ It only works on [@Column](#ann_column) annotations that have the type integer o

Example:

[php]
/**
* @column(type="integer")
* @version
Expand Down

0 comments on commit cc2d84c

Please sign in to comment.