Django import

Django import
This commit is contained in:
Alex Lewis
2012-09-28 21:05:33 +10:00
parent 0cd92dfa9f
commit b0eb5ba9e1
118 changed files with 12494 additions and 11290 deletions

View File

@@ -0,0 +1,115 @@
<?php
namespace BodyRep\Entity;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="comments")
*/
class Comment
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="author", type="string", length=255)
*/
protected $author;
/**
* @ORM\Column(name="text", type="string", length=255)
*/
protected $text;
/**
* @ORM\Column(name="created", type="timestamp")
*/
protected $created;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set author
*
* @param string $author
* @return Comment
*/
public function setAuthor($author)
{
$this->author = $author;
return $this;
}
/**
* Get author
*
* @return string
*/
public function getAuthor()
{
return $this->author;
}
/**
* Set text
*
* @param string $text
* @return Comment
*/
public function setText($text)
{
$this->text = $text;
return $this;
}
/**
* Get text
*
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Set created
*
* @param timestamp $created
* @return Comment
*/
public function setCreated(\timestamp $created)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return timestamp
*/
public function getCreated()
{
return $this->created;
}
}