Skip to content

Commit

Permalink
Fix DateTime types in PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Sep 10, 2014
1 parent fc56b46 commit 7ab24f9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/timestampable.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,23 @@ class Article
private $body;

/**
* @var datetime $created
* @var \DateTime $created
*
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
*/
private $created;

/**
* @var datetime $updated
* @var \DateTime $updated
*
* @Gedmo\Timestampable(on="update")
* @ORM\Column(type="datetime")
*/
private $updated;

/**
* @var datetime $contentChanged
* @var \DateTime $contentChanged
*
* @ORM\Column(name="content_changed", type="datetime", nullable=true)
* @Gedmo\Timestampable(on="change", field={"title", "body"})
Expand Down Expand Up @@ -217,7 +217,7 @@ class Article
private $updated;

/**
* @var datetime $contentChanged
* @var \DateTime $contentChanged
*
* @ODM\Date
* @Gedmo\Timestampable(on="change", field={"title", "body"})
Expand Down Expand Up @@ -404,15 +404,15 @@ class Article
private $title;

/**
* @var datetime $created
* @var \DateTime $created
*
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
*/
private $created;

/**
* @var datetime $updated
* @var \DateTime $updated
*
* @Gedmo\Timestampable(on="update")
* @ORM\Column(type="datetime")
Expand All @@ -425,7 +425,7 @@ class Article
private $type;

/**
* @var datetime $published
* @var \DateTime $published
*
* @ORM\Column(type="datetime", nullable=true)
* @Gedmo\Timestampable(on="change", field="type.title", value="Published")
Expand Down Expand Up @@ -605,15 +605,15 @@ And our Entity properties look as expected:
``` php
<?php
/**
* @var datetime $dateCreated
* @var \DateTime $dateCreated
*
* @ORM\Column(name="date_created", type="datetime")
* @Gedmo\Timestampable(on="create")
*/
private $dateCreated;

/**
* @var datetime $dateLastModified
* @var \DateTime $dateLastModified
*
* @Gedmo\Timestampable(on="update")
* @ORM\Column(name="date_last_modified", type="datetime")
Expand Down

0 comments on commit 7ab24f9

Please sign in to comment.