Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /src/AppBundle/Entity/Account.php:
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\ORM\Mapping\UniqueConstraint;
- use Doctrine\ORM\Mapping\SequenceGenerator;
- /**
- * @ORM\Entity
- * @ORM\Table(name="account")
- */
- class Account {
- /**
- * @ORM\Column(type="integer", nullable=false)
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @ORM\Column(type="string", length=100, unique=true)
- */
- private $username;
- /**
- * @ORM\Column(type="string", length=100)
- */
- private $password;
- public function __construct($username) {
- $this->username = $username;
- }
- function setPassword ($password) {
- $this->password = $password;
- }
- function getUsername() {
- return $this->username;
- }
- function getPassword() {
- return $this->password;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement