-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
type:enhancementEnhancementEnhancement
Milestone
Description
public function resetWith()
{
$this->with = [];
if($this->joinWith){
foreach($this->joinWith AS &$join){
$join[1] = false;
}
unset($join);
}
return $this;
}
Также метод, позволяющий просмотреть весь запрос, который будет выполнен:
public function getRawSql()
{
$builder = Yii::$app->db->queryBuilder;
$query = clone $this;
$query->resetWith();
return $query->prepare($builder)->createCommand()->rawSql;
}
Main point is to clean up eager loading or else there will be the same errors about keys.
Can we add these methods to the new version?
diego-mathis and hirenbhut93
Metadata
Metadata
Assignees
Labels
type:enhancementEnhancementEnhancement