php - listener in symfony2 -


how use event listener in symfony.
is possible in java?
i.e. when select value choice list , can selected value. listener applicabled?

$builder                       ->add('numberrange', 'entity', array(               'class'    => 'telnoperatorbundle:numberrange',               'property' => 'de',               'multiple' => true,              ));              $id= $builder->getdata()->getnumberrange();             $builder->add('subnumbers', 'entity', array(               'class'    => 'telnoperatorbundle:subnumber',               'property' => 'fromsub',               'multiple' => true,               'query_builder' => function(\teln\operatorbundle\entity\subnumberrepository $er) use ($id)                                          {                                           $qb = $er->createquerybuilder('t')                                                   ->where('t.numberrange =:id')                                                   ->setparameter('id', $id);                                             return $qb;                                            },               )); 

despite question vague , seem skip googling, may want stick jquery / javascript listeners: read this. explains how set listeners jquery way.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -