Skip to content

class attribute for entity Field Type #683

Closed
@alterphp

Description

@alterphp

What says the actual doc :

$builder->add('users', 'entity', array(
'class' => 'Acme\HelloBundle\Entity\User',
));

This kind of 'class' reference products an error : "Expected argument of type "object", "string" given"

The working way i found to refer to the class :

$builder->add('users', 'entity', array(
'class' => 'AcmeHelloBundle:User',
));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions