Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

src/Blogger/BlogBundle/Entity/Comment.php #14

@marcbrigham

Description

@marcbrigham

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions