Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Doctrine\Tests\ORM\Mapping;
- /**
- * @Entity(tableName="cms_users")
- * @NamedQueries({
- * @NamedQuery(name="all", query="SELECT u FROM __CLASS__ u")
- * })
- */
- class User
- {
- /**
- * @Id @GeneratedValue
- * @Column(type="integer")
- */
- protected $id;
- /**
- * @Column(type="string", length=50, unique=true)
- */
- protected $name;
- /**
- * @Column(type="string")
- */
- protected $email;
- /**
- * @ManyToMany(targetEntity="Doctrine\Tests\ORM\Mapping\Group", cascade={"persist", "merge", "remove", "detach", "refresh"})
- */
- protected $groups;
- }
Add Comment
Please, Sign In to add comment