Skip to content

Commit

Permalink
Normalized entity field names. Closes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrowan committed Aug 9, 2012
1 parent 904003f commit 6c25955
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Entity/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ abstract class Field extends FieldModel
protected $createdAt;

/**
* @ORM\Column(name="deletedAt", type="datetime", nullable=true)
* @ORM\Column(name="deleted_at", type="datetime", nullable=true)
*/
private $deletedAt;
protected $deletedAt;

/**
* @ORM\Column(name="is_active", type="boolean")
Expand Down
4 changes: 2 additions & 2 deletions Entity/Poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ abstract class Poll extends PollModel
protected $createdAt;

/**
* @ORM\Column(name="deletedAt", type="datetime", nullable=true)
* @ORM\Column(name="deleted_at", type="datetime", nullable=true)
*/
private $deletedAt;
protected $deletedAt;

/**
* @ORM\Column(name="start_at", type="datetime")
Expand Down
3 changes: 2 additions & 1 deletion Resources/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ use Doctrine\ORM\Mapping as ORM;

/**
* @ORM\Entity
* @ORM\Table(name="poll_answer_group")
* @ORM\Table(name="answer_group")
*/
class AnswerGroup extends BaseAnswerGroup
{
Expand Down Expand Up @@ -199,6 +199,7 @@ class Answer extends BaseAnswer
/**
* AnswerGroup.
*
* @ORM\Column(name="answer_group")
* @ORM\ManyToOne(targetEntity="Acme\DemoBundle\Entity\AnswerGroup")
*/
protected $answerGroup;
Expand Down

0 comments on commit 6c25955

Please sign in to comment.