cakephp / elastic-search

Elastic search datasource for CakePHP
Other
88 stars 53 forks source link

Allow find() call chaining like DB ORM #77

Closed jippi closed 8 years ago

jippi commented 8 years ago

Will allow for code like this

        $result = TypeRegistry::get('ElasticLocation')
            ->find('city')
            ->find('forRequest')
            ->find('within', compact('latitude', 'longitude'))
            ->first();
markstory commented 8 years ago

Needs a test, but otherwise looks great.