Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to "comment out" annotation entries in Doctrine

Given the following property with PHPDoc comment containing an annotation for Doctrine:

/**
 * @ORM\Column(name="id", type="integer")
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="AUTO")
 */
private $id;

What is the best way to "comment out" one of the annotation lines? e.g. something like this:

/**
 * @ORM\Column(name="id", type="integer")
 * @ORM\Id
 * //Comment out please// @ORM\GeneratedValue(strategy="AUTO")
 */
private $id;

Is there a supported way, or a general convention for doing this?

like image 918
fazy Avatar asked Nov 01 '12 10:11

fazy


1 Answers

Just remove the @ for Annotation recognition.

/**
 * @ORM\Column(name="id", type="integer")
 * @ORM\Id
 * ORM\GeneratedValue(strategy="AUTO")
 */
private $id;
like image 63
CoKe Avatar answered Oct 05 '22 22:10

CoKe