Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/03/2014, 04:42
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Doctrine cascade persist

Doctrine solo comprueba el owning side, lo que a nivel de codigo se traduce en algo asi:

Código PHP:
Ver original
  1. public function addPattern(PatternInterface $pattern)
  2. {
  3.     if($this->patterns->contains($pattern)) {
  4.         throw now DomainException('...');
  5.     }
  6.     $pattern->setAlert($this);//update owning side
  7.     $this->patterns->add($pattern);  
  8. }

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)