https://github.com/doctrine/DoctrineModule/blob/master/src/DoctrineModule/Form/Element/Proxy.php

On Wednesday, March 5, 2014 10:45:25 AM UTC-7, Tom Johnell wrote:
>
> Hi everyone,
>
> I'm trying to use the find_method for The DoctrineORMModule's EntitySelect 
> object, and I'm running into a php internal error.
>
> $this->add(
>             array(
>                 'type'       => 
> 'DoctrineORMModule\Form\Element\EntitySelect',
>                 'name'       => 'utility',
>                 'options'    => array(
>                     'label'          => 'Utility Company:',
>                     'object_manager' => $em,
>                     'target_class'   => 'Application\Entity\Utility',
>                     'property'       => 'name',
>                     'empty_option'   => '(Please Select)',
>                     'find_method'    => array(
>                         'name' => 'findBy',
>                         'params' => array(
>                             'orderBy' => array('name' => 'ASC')
>                         )
>                     )
>                 ),
>                 'attributes' => array(
>                     'required' => 'required',
>                     'class'    => 'form-control'
>                 )
>             )
>         );
>
> The internal error is occurring on line 408 of 
> DoctrineModule\Form\ElementProxy\Proxy.php:
>
> $args[] = $param->getDefaultValue();
>
>
> Does anyone have any ideas how I can fix this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to