NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #5206 most downloaded on Packagist
Elasticsearch integration and ActiveRecord for the Yii framework
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 5 weeks to 2.2 years
Nearly every release is documented
notes for 14 of 14 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
17 releases · first in 2013
Bug #350: Remove deprecated code, set $pagination->totalCount (lav45)
search_after to paginate over large datasets (lubosdz)Bug #330: Fix curlOptions merging (yuniorsk)
curlOptions merging (yuniorsk)[\ReturnTypeWillChange] attribute for BatchQueryResult methods to be compatible with Iterator interface (warton)curlOptions attribute for advanced configuration of curl session (yuniorsk)One column per quarter.
Enh #311 : Added support for runtime mappings in Elasticsearch 7.11+ (mabentley85)
Enh #18817: Use random_int() when choosing connection (samdark)
random_int() when choosing connection (samdark)Bug #297: Fix Query::count() when index contains more than 10,000 documents (rhertogh)
Query::count() when index contains more than 10,000 documents (rhertogh)false to Query::source() (rhertogh)Bug: (CVE-2018-8074): Fixed possibility of manipulated condition when unfiltered input is passed to ActiveRecord::findOne() or findAll() (cebe)
query() and where() in a query (beowulfenator)count() compatibility with PHP 7.2 to not call it on scalar values (cebe)column('_id') in ActiveQuery (pvassiliou)suggest() command to support Elasticsearch 6.5+ (beowulfenator)ElasticsearchTarget consistently logs message as text (beowufenator)ActiveRecord::findOne() or findAll() (cebe)ActiveDataProvider (Julian-B90)Command::getIndexStatus() and added getIndexStats() and getIndexRecoveryStats() to reflect changes in Elasticsearch 5.0 (cebe)Bug #199: Fixed ActiveRecord::insert() check if insert was indeed successful (rhertogh)
ActiveRecord::insert() check if insert was indeed successful (rhertogh)Bug #180: Fixed count() compatibility with PHP 7.2 to not call it on scalar values (cebe)
count() compatibility with PHP 7.2 to not call it on scalar values (cebe)Bad Request (#400): Unable to verify your data submission. in debug details panel 'run query' (rhertogh)QueryInterface::emulateExecution() (cebe)http://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes/
ActiveDataProvider::refresh() to also reset $queryResults data (sizeg)yii\base\Object to yii\base\BaseObject (dmirogin)ActiveRecord::findOne() or findAll() (cebe)yii\elasticsearch\ActiveDataProvider created (klimov-paul)Content-Type header in HTTP requests to Elasticsearch (lubobill1990)Bug #8: Fixed issue with running out of sockets when running a large number of requests by reusing curl handles (cebe)
_all works only for indexes (cebe)DeleteAll now deletes all entries, not first 10 (beowulfenator)UpdateAll now updates all entries, not first 10 (beowulfenator)array to string conversion when parsing error response (rhertogh, silverfire)min_score option to query (knut)Command::updateSettings() and Command::updateAnalyzers() (githubjeka)batch() and each() (beowulfenator, 13leaf)Query and ActiveQuery now have $options attribute that is passed to commands generated by queries (beowulfenator)Query and ActiveQuery with populate() (beowulfenator)- no changes in this release.
Enh: Added ActiveFixture class for testing fixture support for Elasticsearch (cebe, viilveer)
ActiveFixture class for testing fixture support for Elasticsearch (cebe, viilveer)Bug #5662: Elasticsearch AR updateCounters() now uses explicitly groovy script for updating making it compatible with ES >1.3.0 (cebe)
groovy script for updating making it compatible with ES >1.3.0 (cebe)ActiveRecord::unlink() was failing in some situations when working with relations via array valued attributes (cebe)ActiveRecord::update() and ::delete() including support for routing needed for updating records with parent relation (cebe)Enh #3381: Added ActiveRecord::arrayAttributes() to define attributes that should be treated as array when retrieved via fields (cebe)
fields (cebe)Bug #3587: Fixed an issue with storing empty records (cebe)
highlight property to Query and ActiveRecord. (Borales)init event to ActiveQuery classes (qiangxue)with is supported anymore. (cebe)Bug #1993: afterFind event in AR is now called after relations have been populated (cebe, creocoder)
ActiveRecord::instantiate() to allow creating records based on Elasticsearch type when doing cross index/type search (cebe)afterSave() so information about changed attributes is available in afterSave-event (cebe)ActiveRecord::create() to populateRecord() and changed signature. This method will not call instantiate() anymore (cebe)ActiveRelation class and moved the functionality to ActiveQuery.
All relational queries are now directly served by ActiveQuery allowing to use
custom scopes in relations (cebe)- Initial release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →