You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
If a property has a DateTime converter annotation, it should be possible to use a DateTime object in findBy.
AFAIK you can only use the unix timestamp or the long unix timestamp in findBy.
It would be useful to be able to do: $repository->findBy(['property' => new \DateTime()])
This involves parsing the metadata of the class, so it might not be that optimal.
The other approach could be to convert \DateTime values to their unix timestamp, but then you risk a mismatch if the long timestamp format is used.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If a property has a DateTime converter annotation, it should be possible to use a DateTime object in findBy.
AFAIK you can only use the unix timestamp or the long unix timestamp in findBy.
It would be useful to be able to do:
$repository->findBy(['property' => new \DateTime()])
This involves parsing the metadata of the class, so it might not be that optimal.
The other approach could be to convert \DateTime values to their unix timestamp, but then you risk a mismatch if the long timestamp format is used.
The text was updated successfully, but these errors were encountered: