Commit 7f670aaf by Alexander Makarov

Additional typo fixed for Database Access Objects guide

parent 4002512d
...@@ -270,7 +270,7 @@ For example, ...@@ -270,7 +270,7 @@ For example,
```php ```php
// executes this SQL for MySQL: SELECT COUNT(`id`) FROM `employee` // executes this SQL for MySQL: SELECT COUNT(`id`) FROM `employee`
$count = $db->createCommand("SELECT COUNT([[id]]) FROM {{employee}}") $count = $db->createCommand("SELECT COUNT([[id]]) FROM {{%employee}}")
->queryScalar(); ->queryScalar();
``` ```
...@@ -301,7 +301,7 @@ when configuring the DB connection. For example, ...@@ -301,7 +301,7 @@ when configuring the DB connection. For example,
```php ```php
// executes this SQL for MySQL: SELECT COUNT(`id`) FROM `tbl_employee` // executes this SQL for MySQL: SELECT COUNT(`id`) FROM `tbl_employee`
$count = $db->createCommand("SELECT COUNT([[id]]) FROM {{employee}}") $count = $db->createCommand("SELECT COUNT([[id]]) FROM {{%employee}}")
->queryScalar(); ->queryScalar();
``` ```
...@@ -347,7 +347,7 @@ The transaction is represented as a [[yii\db\Transaction]] object stored in the ...@@ -347,7 +347,7 @@ The transaction is represented as a [[yii\db\Transaction]] object stored in the
the queries being executed are enclosed in a `try...catch...` block. If all queries are executed successfully, the queries being executed are enclosed in a `try...catch...` block. If all queries are executed successfully,
the [[yii\db\Transaction::commit()|commit()]] method is called to commit the transaction. Otherwise, an exception the [[yii\db\Transaction::commit()|commit()]] method is called to commit the transaction. Otherwise, an exception
will be triggered and caught, and the [[yii\db\Transaction::rollBack()|rollBack()]] method is called to roll back will be triggered and caught, and the [[yii\db\Transaction::rollBack()|rollBack()]] method is called to roll back
the changes made the queries prior to that failed query in the transaction. the changes made by the queries prior to that failed query in the transaction.
### Specifying Isolation Levels <a name="specifying-isolation-levels"></a> ### Specifying Isolation Levels <a name="specifying-isolation-levels"></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment