neo4j-php-ogm icon indicating copy to clipboard operation
neo4j-php-ogm copied to clipboard

Add support for property converters to findBy.

Open TSchuermans opened this issue 8 years ago • 0 comments

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.

TSchuermans avatar Nov 10 '17 09:11 TSchuermans