Uživatelské nástroje

Nástroje pro tento web


doctrine

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revizePředchozí verze
Následující verze
Předchozí verze
Poslední revizeObě strany příští revize
doctrine [2013/10/03 23:07] – [Entity] blazekdoctrine [2013/10/03 23:48] – [Entity] blazek
Řádek 120: Řádek 120:
  
 <file php entities/User.php> <file php entities/User.php>
 +<?php
 +
 +/**
 + * Description of User
 + *
 + * @author blazek
 + * @Entity @Table(name="user")
 + */
 +class User {
 +
 +    /**
 +     * @Id @Column(type="integer")
 +     * @GeneratedValue
 +     */
 +    private $id;
 +
 +    /** @Column(type="string", length=45, unique=false, nullable=true) */
 +    private $firstname;
 +
 +    /** @Column(type="string", length=45, unique=false, nullable=true) */
 +    private $lastname;
 +
 +    /** @Column(type="string", length=45, unique=true, nullable=false) */
 +    private $login;
 +
 +    /** @Column(type="string", length=64, unique=false, nullable=false) */
 +    private $password;
 +
 +    /** @Column(type="text", nullable=false) */
 +    private $description;
 +
 +    /**
 +     * @Column(type="datetime", nullable=false)
 +     * @GeneratedValue
 +     */
 +    private $insertDate;
 +
 +    function __construct() {
 +        
 +    }
 +
 +    public function getId() {
 +        return $this->id;
 +    }
 +
 +    public function setId($id) {
 +        $this->id = $id;
 +    }
 +
 +    public function getFirstname() {
 +        return $this->firstname;
 +    }
 +
 +    public function setFirstname($firstname) {
 +        $this->firstname = $firstname;
 +    }
 +
 +    public function getLastname() {
 +        return $this->lastname;
 +    }
 +
 +    public function setLastname($lastname) {
 +        $this->lastname = $lastname;
 +    }
 +
 +    public function getLogin() {
 +        return $this->login;
 +    }
 +
 +    public function setLogin($login) {
 +        $this->login = $login;
 +    }
 +
 +    public function getPassword() {
 +        return $this->password;
 +    }
 +
 +    public function setPassword($password) {
 +        $this->password = $password;
 +    }
 +
 +    public function getDescription() {
 +        return $this->description;
 +    }
 +
 +    public function setDescription($description) {
 +        $this->description = $description;
 +    }
 +
 +    public function getInsertDate() {
 +        return $this->insertDate;
 +    }
 +
 +    public function setInsertDate($insertDate) {
 +        $this->insertDate = $insertDate;
 +    }
 +
 +}
 +?>
 </file> </file>
  
doctrine.txt · Poslední úprava: 2023/12/26 19:13 autor: 127.0.0.1