Hi Everyone

i would really be grateful if someone could please help me resolve this
problem.

i have two fieldsets in a zendframework 2 form ( i am also using Doctrine2
).

i have tested each of the fieldsets individually and each returns the
appropriate values. the problem arises when i try to combine the two
fieldsets together . I am only able to return the values from the
basefieldset but not the values from the sub-fieldset 

so i would be really grateful if someone could please show me 
A: a working example of using collections to return hydrated values from a
sub-fieldset
b: help debugging this problem
C: advice on how i should go about debugging it. 

; i have been struggling with this matter for 2 months now and are
completely stuck. 


below is the  var_dump from my validated form: you will note that only one
entity is being returned ( it should however be two entities: only the
basefiled entity is being returned. 

object(FormDependencies\Entity\TimeTableList)[411]
  protected 'id' => null
  protected 'timeTable' => 
    array (size=3)
      0 => string '1' (length=1)
      1 => string '11' (length=2)
      2 => string '21' (length=2)
  protected 'theTimeTable' => 
    object(Doctrine\Common\Collections\ArrayCollection)[412]
      private '_elements' => 
        array (size=0)
          empty

i have created a github of the relevant classes. 
for my full  classes and subset fieldsets  please click here:
<https://gist.github.com/anonymous/9187510>  


I This is the tutorial that i followed:
<https://github.com/doctrine/DoctrineModule/blob/master/docs/hydrator.md#a-complete-example-using-zendform>
  

i sincerely look forward to hearing from someone.

my warmest appreciation in advance. 

warm regards 

Andreea 



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-framework-2-form-collections-unable-to-extract-subset-Fieldset-tp4661737.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to