You can do this via the metadata api, fetching all the values via
reflection, but it's quite risky.

In general, doctrine only operates on fully valid objects, so such an API
provided out of the box would be controversial.

On 13 Jun 2017 16:26, "Andrew Davey" <[email protected]> wrote:

> Hi there,
>
> I have an entity:
>
> UserSearch
> -> Name: abc
> -> Location: london
>
> What i'd like to do is check to see if this UserSearch entity has already
> been created i know i can do findBy(array(Name =>
> $usersearch->getName()...)) is there a way that i can automatically do this
> with doctrine?
>
> My hope is that doctrine has a function that will do some reflection and
> pull out the values and do it's own search based on just having an entity.
>
> --
> 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 https://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to