Skip to content

Instantly share code, notes, and snippets.

@Allisone
Created May 7, 2012 17:18
Show Gist options
  • Save Allisone/2629065 to your computer and use it in GitHub Desktop.
Save Allisone/2629065 to your computer and use it in GitHub Desktop.
<?php
class Genero {
/**
* The peliculas
* @var \Peliculas\Domain\Model\Peliculas
* @ORM\ManyToOne
*/
protected $peliculas;
}
<?php
class Peliculas {
/**
* The generos
* @var \Doctrine\Common\Collections\Collection<\Peliculas\Domain\Model\Genero>
* @ORM\OneToMany(mappedBy="peliculas")
*/
protected $generos;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment