bscheshirwork

Results 60 comments of bscheshirwork

This like a true... https://github.com/Codeception/c3/blob/777e3b626d9a5ecdfea3eff3d3de437045b41c92/c3.php#L33-L49 is a function definition. In this code https://github.com/Codeception/c3/blob/777e3b626d9a5ecdfea3eff3d3de437045b41c92/c3.php#L95-L99 Function `__c3_error` is called before check https://github.com/Codeception/c3/blob/777e3b626d9a5ecdfea3eff3d3de437045b41c92/c3.php#L101

now I propose ```php public function viaRelation($target, $relationName, $via){ $target instanceof ActiveRecord || $target = Yii::createObject($target); /** @var ActiveQuery $relationQuery */ $relationQuery = $target->getRelation($relationName); $relationQuery->primaryModel = $this; return $relationQuery->via($via); }...

> It's avoid double declare link and type of relation (multiple)

i.e. model3, who use relation of model2 as via to model1 not necessary know about details of relation definition into model2 model3 is so pure :angel:

From docs [https://github.com/yiisoft/yii2/tree/master/docs/guide](https://github.com/yiisoft/yii2/tree/master/docs/guide) ```php class Order extends ActiveRecord { public function getOrderItems() { return $this->hasMany(OrderItem::className(), ['order_id' => 'id']); } public function getItems() { return $this->hasMany(Item::className(), ['id' => 'item_id']) ->via('orderItems'); }...

And this can be used for simple-definition chain of relation

Try to add timezone to `dump.sql` For example "headers" of mysqldump contain someone like this (see last line of example) ```sql -- MySQL dump 10.13 Distrib 8.0.3-rc, for Linux (x86_64)...

> timezone is an important property in a database connection So... Example for PDO connect, please? (without test case)

Also I use this variant ```php trait CubsModelTrait { /** * Stored labels (after merge and translate) * if you need dynamic labels - clear it for refresh * @var...

@samdark https://github.com/yiisoft/yii2/blob/46b9d607a25769c8554773291698c4f6ec654187/framework/grid/GridView.php#L481-L485 we have BC broken