Skip to content

Doctrine2 magic repository methods #149

Open
@luxemate

Description

@luxemate

In 0.8.0 release there was a note:

  • Detect EntityRepository::find/findOneBy/findAll/findBy result type

At the moment doctrine2 support behaves like this:

$repo = $this->getDoctrine()->getRepository('Namespace:Entity');
$entity = $repo->findOneByProperty('value'); // $entity does not resolve as an Entity
$entity = $repo->findOneBy(array('property' => 'value')) // $entity does resolve as an Entity and autocomplete works

Could you please implement resolving of magic methods like findOneBy* and findBy*?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions