Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Entities;
- /**
- * @Entity
- * @Table(name="season")
- */
- class Season {
- /**
- * @Id
- * @Column(type="integer", nullable=false)
- * @GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @Column(type="string", length="255", nullable=false)
- */
- protected $title;
- /**
- * @OneToOne(targetEntity="Matches", mappedBy="season_id")
- */
- protected $match;
- // GETTERS & SETTERS
- public function setTitle($title) {
- $this->title = (string)$title;
- }
- public function getTitle() {
- return $this->title;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement