yii2-collection icon indicating copy to clipboard operation
yii2-collection copied to clipboard

Collection extension for Yii 2

Results 10 yii2-collection issues
Sort by recently updated
recently updated
newest added

- use `ArrayAccessTrait` - clone collected objects - `apply()`: calls given method for each object in collection https://gist.github.com/WinterSilence/b1884de728d3023591bf6e0c53181742

- [ ] lazy evaluation of a query - [ ] deleteAll() https://github.com/yiisoft/yii2/issues/13921#issuecomment-293706000 - [ ] validateAll() - [ ] saveAll() - [ ] updateAll()

type:enhancement

Right now basic CRUD for model looks like this: ```php public function actionCreate() { $model = new User(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else...

type:enhancement

The current implementation of `GeneratorCollection` supports functions like `filter` and `map`. Doing something like I've proposed here: https://github.com/nikic/iter/issues/45 Would allow for a fluent interface allowing code like ```` $collection->filter(...)->map(....)->... ````

type:enhancement

- [ ] relational operations like link() and unlink() sync() - https://github.com/yiisoft/yii2/pull/12304#issuecomment-242339800 - https://github.com/yiisoft/yii2/issues/10806#issuecomment-242346294 --- - [ ] addToRelation() by checking if query is a relation - https://github.com/yiisoft/yii2/issues/10806#issuecomment-241505294

type:enhancement

The following issue could probably be solved by using collection: https://github.com/yiisoft/yii2/issues/2900

type:enhancement

like in https://github.com/samdark/yii2-cookbook/blob/5d2af88373d2e0b02b1d908c64b150204e7a2952/book/structure-collections.md

type:enhancement

https://athari.github.io/YaLinqo/docs/classes/YaLinqo.Enumerable.html#method_groupJoin

type:enhancement

Can't you use ```` int iterator_count ( Traversable $iterator ) ```` http://php.net/manual/en/function.iterator-count.php ?

| Q | A | ------------- | --- | Is bugfix? | no | New feature? | yes | Breaks BC? | no | Tests pass? | no