From eda196bb103bba9db26b8fda10813c83f0a02c71 Mon Sep 17 00:00:00 2001 From: fmorante Date: Mon, 6 Jul 2015 17:38:13 +0200 Subject: [PATCH 1/2] first commit --- src/MovieBundle/Entity/Movie.php | 16 ++++++ src/MovieBundle/Entity/Person.php | 11 ++++ src/MovieBundle/Entity/Producer.php | 10 ++++ .../Resources/config/doctrine/Movie.orm.yml | 53 +++++++++++++++++++ .../Resources/config/doctrine/Person.orm.yml | 23 ++++++++ .../config/doctrine/Producer.orm.yml | 18 +++++++ 6 files changed, 131 insertions(+) create mode 100644 src/MovieBundle/Entity/Movie.php create mode 100644 src/MovieBundle/Entity/Person.php create mode 100644 src/MovieBundle/Entity/Producer.php create mode 100644 src/MovieBundle/Resources/config/doctrine/Movie.orm.yml create mode 100644 src/MovieBundle/Resources/config/doctrine/Person.orm.yml create mode 100644 src/MovieBundle/Resources/config/doctrine/Producer.orm.yml diff --git a/src/MovieBundle/Entity/Movie.php b/src/MovieBundle/Entity/Movie.php new file mode 100644 index 0000000000..02bf921972 --- /dev/null +++ b/src/MovieBundle/Entity/Movie.php @@ -0,0 +1,16 @@ + Date: Mon, 6 Jul 2015 18:21:21 +0200 Subject: [PATCH 2/2] entities + getters & setters --- src/MovieBundle/Entity/Movie.php | 145 ++++++++++++++++++++++++++++ src/MovieBundle/Entity/Person.php | 65 +++++++++++++ src/MovieBundle/Entity/Producer.php | 49 ++++++++++ 3 files changed, 259 insertions(+) diff --git a/src/MovieBundle/Entity/Movie.php b/src/MovieBundle/Entity/Movie.php index 02bf921972..b0f4fdf0bf 100644 --- a/src/MovieBundle/Entity/Movie.php +++ b/src/MovieBundle/Entity/Movie.php @@ -13,4 +13,149 @@ class Movie protected $actors; protected $director; + /** + * @return mixed + */ + public function getId() + { + return $this->id; + } + + /** + * @param mixed $id + */ + public function setId($id) + { + $this->id = $id; + } + + /** + * @return mixed + */ + public function getTitle() + { + return $this->title; + } + + /** + * @param mixed $title + */ + public function setTitle($title) + { + $this->title = $title; + } + + /** + * @return mixed + */ + public function getImdbLink() + { + return $this->imdbLink; + } + + /** + * @param mixed $imdbLink + */ + public function setImdbLink($imdbLink) + { + $this->imdbLink = $imdbLink; + } + + /** + * @return mixed + */ + public function getYoutubeLink() + { + return $this->youtubeLink; + } + + /** + * @param mixed $youtubeLink + */ + public function setYoutubeLink($youtubeLink) + { + $this->youtubeLink = $youtubeLink; + } + + /** + * @return mixed + */ + public function getDescription() + { + return $this->description; + } + + /** + * @param mixed $description + */ + public function setDescription($description) + { + $this->description = $description; + } + + /** + * @return mixed + */ + public function getRating() + { + return $this->rating; + } + + /** + * @param mixed $rating + */ + public function setRating($rating) + { + $this->rating = $rating; + } + + /** + * @return mixed + */ + public function getProducer() + { + return $this->producer; + } + + /** + * @param mixed $producer + */ + public function setProducer($producer) + { + $this->producer = $producer; + } + + /** + * @return mixed + */ + public function getActors() + { + return $this->actors; + } + + /** + * @param mixed $actors + */ + public function setActors($actors) + { + $this->actors = $actors; + } + + /** + * @return mixed + */ + public function getDirector() + { + return $this->director; + } + + /** + * @param mixed $director + */ + public function setDirector($director) + { + $this->director = $director; + } + + } \ No newline at end of file diff --git a/src/MovieBundle/Entity/Person.php b/src/MovieBundle/Entity/Person.php index f3de846904..39a00e8972 100644 --- a/src/MovieBundle/Entity/Person.php +++ b/src/MovieBundle/Entity/Person.php @@ -8,4 +8,69 @@ class Person protected $movies; protected $moviesDirected; + /** + * @return mixed + */ + public function getId() + { + return $this->id; + } + + /** + * @param mixed $id + */ + public function setId($id) + { + $this->id = $id; + } + + /** + * @return mixed + */ + public function getName() + { + return $this->name; + } + + /** + * @param mixed $name + */ + public function setName($name) + { + $this->name = $name; + } + + /** + * @return mixed + */ + public function getMovies() + { + return $this->movies; + } + + /** + * @param mixed $movies + */ + public function setMovies($movies) + { + $this->movies = $movies; + } + + /** + * @return mixed + */ + public function getMoviesDirected() + { + return $this->moviesDirected; + } + + /** + * @param mixed $moviesDirected + */ + public function setMoviesDirected($moviesDirected) + { + $this->moviesDirected = $moviesDirected; + } + + } \ No newline at end of file diff --git a/src/MovieBundle/Entity/Producer.php b/src/MovieBundle/Entity/Producer.php index 27470428d7..c697546b50 100644 --- a/src/MovieBundle/Entity/Producer.php +++ b/src/MovieBundle/Entity/Producer.php @@ -7,4 +7,53 @@ class Producer protected $name; protected $movies; + /** + * @return mixed + */ + public function getId() + { + return $this->id; + } + + /** + * @param mixed $id + */ + public function setId($id) + { + $this->id = $id; + } + + /** + * @return mixed + */ + public function getName() + { + return $this->name; + } + + /** + * @param mixed $name + */ + public function setName($name) + { + $this->name = $name; + } + + /** + * @return mixed + */ + public function getMovies() + { + return $this->movies; + } + + /** + * @param mixed $movies + */ + public function setMovies($movies) + { + $this->movies = $movies; + } + + } \ No newline at end of file