spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer

Home Page:http://phpdatamapper.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The search method is deprecated ?

diego-sorribas opened this issue · comments

commented

Hello, I have an error when using the search method of Query class, it throw me this exception:

Call to undefined method Spot\Entity\Manager::datasourceOptions()

Which is the best way to do a search?

Thanks!

I'am not familiar with the search method. Maybe I'm blind but could not find anything useful in the commit history either. @vlucas could you please help us out?

That's a bug. That should be a call to tableOptions instead.

Looks like there is a test Entity for searching, but no actual search performed in the tests or this would have been caught: https://github.com/spotorm/spot2/blob/e3c98c8fc212dc1ff83fabbea77048fb7691b12a/tests/Entity/Event/Search.php