Dmitriy Kim

Results 4 comments of Dmitriy Kim

I totally agree with @ralphschindler . I will say more: try not to use facades or static calls anywhere. Use injections through method arguments. If this does not work out...

@alexeymezenin Ok, I understand and partially agree with you. Laravel encourages static calls and global functions. But I disagree that calling facades from anywhere is "Best Practices."

In continue of our discussion I have one more question. Construction: ``` try { Yii::$app->db->pdo->setAttribute(\PDO::ATTR_EMULATE_PREPARES, 1); $statement = Yii::$app->db->pdo->prepare($sql); $statement->execute(); while ($statement->nextRowset()) { // } } catch (\Exception $e) {...

@TomaszKane, yes, thanks, I'm looking for solution to remove delimiters from queriy now.