Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Acme\UserBundle\Entity;
- use FOS\UserBundle\Entity\User as BaseUser;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- * @ORM\Table(name="acme_users")
- */
- class User extends BaseUser
- {
- /**
- * @ORM\Id
- * @ORM\Column(type="integer")
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- protected $username;
- protected $password;
- /**
- * Constructs a new instance of User
- */
- public function __construct()
- {
- parent::__construct();
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set username
- *
- * @param string $value The username.
- */
- public function setUsername($value)
- {
- $this->username = $value;
- }
- /**
- * Get username
- *
- * @return string The username.
- */
- public function getUsername()
- {
- return $this->username;
- }
- /**
- * Set password
- *
- * @param string $value The password.
- */
- public function setPassword($value)
- {
- $this->password = $value;
- }
- /**
- * Get password
- *
- * @return string The password.
- */
- public function getPassword()
- {
- return $this->password;
- }
- }
Add Comment
Please, Sign In to add comment