Ver Mensaje Individual
  #17 (permalink)  
Antiguo 27/10/2012, 06:50
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 7 meses
Puntos: 845
Respuesta: Problema con formulario y clave foranea

Tienes que importar la clase o bien en setArticulo pasar el FQCN.

importar
Código PHP:
Ver original
  1. namespace BestSup\OpinionesBundle\Entity;
  2.  
  3. use BestSup\ArticuloBundle\Entity\Articulo;
  4.  
  5. class Opinion
  6. {
  7.     public function setArticulo(Articulo $articulo)
  8.     {...}
  9. }

fqnc
Código PHP:
Ver original
  1. namespace BestSup\OpinionesBundle\Entity;
  2.  
  3. class Opinion
  4. {
  5.     public function setArticulo(\BestSup\ArticuloBundle\Entity\Articulo $articulo)
  6.     {...}
  7. }

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