symblog icon indicating copy to clipboard operation
symblog copied to clipboard

src/Blogger/BlogBundle/Entity/Comment.php

Open marcbrigham opened this issue 11 years ago • 0 comments

In that file the code looks like:

/**
 * @ORM\preUpdate
 */
public function setUpdatedValue()
{
   $this->setUpdated(new \DateTime());
}

When it should look like this:

/** * @ORM\PreUpdate */ public function setUpdatedValue() { $this->setUpdated(new \DateTime()); }

You will get an error when you run the command: php app/console doctrine:generate:entities Blogger\BlogBundle

marcbrigham avatar Nov 08 '13 18:11 marcbrigham