Misbahul D Munir
Misbahul D Munir
Also generate `phpunit.xml`, `.travis.yml`, `tests/TestCase.php`, etc.
I am sure. Base on your favorite :D
``` php $query1 = (new \yii\db\Query()) ->select("id, category_id AS type, name") ->from('post'); $query2 = (new \yii\db\Query()) ->select('id, type, name') ->from('user'); (new yii\db\Query()) ->select('*') ->from($query1->union($query2)) ->orderBy('type'); ```
https://github.com/commenthol/astronomia/blob/master/src/elliptic.js#L29
mungkin sama dengan ini #2377
``` php $dataProvider = new ActiveDataProvider([ 'query' => $query, 'pagination' => [ 'pageSizeLimit' => [1], ] ]); ```
i have the same question.
:+1: IMO, its OK to add method `primaryKey()` to `yii\db\ColumnSchemaBuilder`. Current `primaryKey()` method are belong to `yii\db\Migration`. ``` php 'id' => $this->primaryKey(), // --> 'id' => Schema::TYPE_PK 'user_id' => $this->integer()->primaryKey(),...
``` php $dataProvider = new ActiveDataProvider([ 'query' => $query, 'pagination' => [ 'pageSizeLimit' => [1], ] ]); ```
IMO, Much better if we have method `update()` and `delete()` at object `Query`. ```php // delete (new Query()) ->from('order') ->where(['status' => 'expire']) ->delete(); // update join (new Query()) ->from('order o')...