Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/04/2013, 14:01
jburgui
 
Fecha de Ingreso: abril-2013
Mensajes: 12
Antigüedad: 11 años
Puntos: 1
Respuesta: ArrayCollection vacio.

esto es estudio:
Código:
proyecto\backendBundle\Entity\Estudio:
    type: entity
    table: estudio
    fields:
        id:
            id: true
            type: integer
            unsigned: false
            nullable: false
            generator:
                strategy: IDENTITY
        nombre:
            type: string
            length: 255
            fixed: false
            nullable: false
        numPartes:
            type: integer
            unsigned: false
            nullable: false
            column: num_partes
        numDatosEstudio:
            type: integer
            unsigned: false
            nullable: false
            column: num_datos_estudio
        descripcion:
            type: string
            length: 255
            fixed: false
            nullable: false
        activa:
            type: boolean
            nullable: false
    oneToMany:
        partesEstudio:
            targetEntity: ParteEstudio
            mappedBy: idEstudio
            cascade: [persist]
    lifecycleCallbacks: {  }
y esto es partesEstudio:

Código:
proyecto\backendBundle\Entity\ParteEstudio:
    type: entity
    table: parte_estudio
    fields:
        id:
            id: true
            type: integer
            unsigned: false
            nullable: false
            generator:
                strategy: IDENTITY
        nombre:
            type: string
            length: 255
            fixed: false
            nullable: false
        numOrden:
            type: integer
            unsigned: false
            nullable: false
            column: num_orden
        numPreguntas:
            type: integer
            unsigned: false
            nullable: false
            column: num_preguntas
        titulo:
            type: string
            length: 255
            fixed: false
            nullable: true
        guardarTiempoRespuesta:
            type: boolean
            nullable: true
            column: guardar_tiempo_respuesta
        tipoTratamientoDatos:
            type: string
            length: 255
            fixed: false
            nullable: true
            column: tipo_tratamiento_datos
        numPreguntasDePrueba:
            type: integer
            unsigned: false
            nullable: false
            column: num_preguntas_de_prueba
    manyToOne:
        idEstudio:
            targetEntity: Estudio
            cascade: {  }
            mappedBy: null
            inversedBy: PartesEstudio
            joinColumns:
                id_estudio:
                    referencedColumnName: id
            orphanRemoval: false
        idTipoPregunta:
            targetEntity: TipoPregunta
            cascade: {  }
            mappedBy: null
            inversedBy: null
            joinColumns:
                id_tipo_pregunta:
                    referencedColumnName: id
            orphanRemoval: false
    lifecycleCallbacks: {  }

¿con lo del seteado del cascade a que te refieres?

Un saludo.