Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1018 from niden/master
Browse files Browse the repository at this point in the history
Updating translation and fixed URL in sidebar
  • Loading branch information
niden committed Jun 19, 2017
2 parents 332a453 + f70f9ca commit 07b4335
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
34 changes: 17 additions & 17 deletions docs/cs/3.1/db-models-transactions.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<div class='article-menu'>
<ul>
<li>
<a href="#overview">Model Transactions</a> <ul>
<a href="#overview">Modelové transakce</a> <ul>
<li>
<a href="#manual">Manual Transactions</a>
<a href="#manual">Manualní transakce</a>
</li>
<li>
<a href="#implicit">Implicit Transactions</a>
<a href="#implicit">Implicitní transakce</a>
</li>
<li>
<a href="#isolated">Isolated Transactions</a>
<a href="#isolated">Izolované transakce</a>
</li>
</ul>
</li>
Expand All @@ -18,17 +18,17 @@

<a name='overview'></a>

# Model Transactions
# Modelové transakce

When a process performs multiple database operations, it might be important that each step is completed successfully so that data integrity can be maintained. Transactions offer the ability to ensure that all database operations have been executed successfully before the data is committed to the database.
Pokud proces provádí více databázových operací, je důležité, aby každý krok byl úspěšně dokončen, a byla tak zachována integrita dat. Transakce nabízejí možnost zjistit, zda všechny databázové operace budou provedeny úspěšně předtím, než budou data uložena do databáze.

Transactions in Phalcon allow you to commit all operations if they were executed successfully or rollback all operations if something went wrong.
Transakce ve Phalconu vám umožní potvrdit všechny operace, pokud byly provedeny úspěšně, nebo vrácení všech změn zpět, pokud se něco pokazilo.

<a name='manual'></a>

## Manual Transactions
## Manualní transakce

If an application only uses one connection and the transactions are not very complex, a transaction can be created by just moving the current connection into transaction mode and then commit or rollback the operation whether it is successful or not:
Pokud aplikace používá pouze jedno připojení a transakce nejsou příliš složité, může být transakce vytvořena pouze přesunutím aktuálního připojení do režimu transakce a následným provedením nebo zrušením operace podle úspěšnosti:

```php
<?php
Expand Down Expand Up @@ -73,9 +73,9 @@ class RobotsController extends Controller

<a name='implicit'></a>

## Implicit Transactions
## Implicitní transakce

Existing relationships can be used to store records and their related instances, this kind of operation implicitly creates a transaction to ensure that data is correctly stored:
Pro uložení existující relace lze použít jejich instance, tento druh operace implicitně vytváří transakci, která zajistí správné uložení dat:

```php
<?php
Expand All @@ -98,9 +98,9 @@ $robot->save();

<a name='isolated'></a>

## Isolated Transactions
## Izolované transakce

Isolated transactions are executed in a new connection ensuring that all the generated SQL, virtual foreign key checks and business rules are isolated from the main connection. This kind of transaction requires a transaction manager that globally manages each transaction created ensuring that they are correctly rolled back/committed before ending the request:
Izolované transakce se provádějí v novém spojení, které zajišťuje, že všechny generované SQL, kontroly cizích klíčů a business rules (aplikační logika) jsou izolovány od hlavního připojení. Tento druh transakce vyžaduje správce transakcí, který globálně spravuje všechny vytvořené transakce a zajišťuje, že byly před ukončením požadavku správně vráceny zpět nebo uloženy:

```php
<?php
Expand Down Expand Up @@ -148,7 +148,7 @@ try {
}
```

Transactions can be used to delete many records in a consistent way:
Transakce lze použít k odstranění více záznamů konzistentním způsobem:

```php
<?php
Expand Down Expand Up @@ -192,7 +192,7 @@ try {
}
```

Transactions are reused no matter where the transaction object is retrieved. A new transaction is generated only when a `commit()` or :code:`rollback()` is performed. You can use the service container to create the global transaction manager for the entire application:
Transakce jsou znovu použity bez ohledu na to, kde je objekt transakce načten. Nová transakce se vygeneruje pouze v případě, že se provede příkaz `commit()` nebo :code:`rollback()`. Můžete také použít kontejner pro služby (Di) pro vytvoření globalního správce transakcí pro celou aplikaci:

```php
<?php
Expand All @@ -207,7 +207,7 @@ $di->setShared(
);
```

Then access it from a controller or view:
Pak k němu máme přístup v Controlleru nebo v šabloně:

```php
<?php
Expand All @@ -232,4 +232,4 @@ class ProductsController extends Controller
}
```

While a transaction is active, the transaction manager will always return the same transaction across the application.
Dokud je transakce aktivní, správce transakcí vždy vrací tu stejnou transakci skrz celou aplikaci.
2 changes: 1 addition & 1 deletion docs/en/3.1/sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- [Metadata](/[[language]]/[[version]]/db-models-metadata)
- [Relationships](/[[language]]/[[version]]/db-models-relationships)
- [Transactions](/[[language]]/[[version]]/db-models-transactions)
- [Validators](/[[language]]/[[version]]/db-models-validators)
- [Validators](/[[language]]/[[version]]/db-models-validation)
- [Migrations](/[[language]]/[[version]]/db-migrations)
- [Pagination](/[[language]]/[[version]]/db-pagination)
- Front End
Expand Down
42 changes: 21 additions & 21 deletions docs/ru/3.1/sidebar.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
- [Основное](/[[language]]/[[version]]/introduction)
- [Главная](/[[language]]/[[version]]/introduction)
- [Примечания к выпуску](/[[language]]/[[version]]/release-notes)
- Обновление
- [Спонсоры](/[[language]]/[[version]]/sponsors)
- Contributions
- [Overview](/[[language]]/[[version]]/contributions)
- Вклад
- [Введение](/[[language]]/[[version]]/contributions)
- [Пулл реквесты](/[[language]]/[[version]]/new-pull-request)
- [NFR](/[[language]]/[[version]]/new-feature-request)
- [Генерация трассировки выполнения](/[[language]]/[[version]]/generating-backtrace)
- [Воспроизводимые тесты](/[[language]]/[[version]]/reproducible-tests)
- Руководство по тестированию
- Начало работы
- [Installation](/[[language]]/[[version]]/installation)
- Приступая к работе
- [Установка](/[[language]]/[[version]]/installation)
- [Настройка веб-сервера](/[[language]]/[[version]]/webserver-setup)
- [WAMP](/[[language]]/[[version]]/webserver-wamp)
- [XAMPP](/[[language]]/[[version]]/webserver-xampp)
Expand All @@ -19,37 +19,37 @@
- [Nanobox](/[[language]]/[[version]]/environments-nanobox)
- [Phalcon Box (Vagrant)](/[[language]]/[[version]]/environments-vagrant)
- Инструменты разработчика
- [Installation](/[[language]]/[[version]]/devtools-installation)
- [Usage](/[[language]]/[[version]]/devtools-usage)
- [Установка](/[[language]]/[[version]]/devtools-installation)
- [Использование](/[[language]]/[[version]]/devtools-usage)
- [Отладка](/[[language]]/[[version]]/debug)
- Ядро
- Application
- Приложение
- [Полное](/[[language]]/[[version]]/application)
- [Micro](/[[language]]/[[version]]/application-micro)
- [Микро](/[[language]]/[[version]]/application-micro)
- [CLI](/[[language]]/[[version]]/application-cli)
- [DI контейнер](/[[language]]/[[version]]/di)
- [MVC](/[[language]]/[[version]]/mvc)
- Services
- [Cache](/[[language]]/[[version]]/cache)
- Сервисы
- [Кэш](/[[language]]/[[version]]/cache)
- [Конфигурация](/[[language]]/[[version]]/config)
- [Escaper](/[[language]]/[[version]]/escaper)
- [Автозагрузка классов](/[[language]]/[[version]]/loader)
- [Пространства имён](/[[language]]/[[version]]/namespaces)
- [Журналирование](/[[language]]/[[version]]/logging)
- [Адаптеры](/[[language]]/[[version]]/logging#usage)
- [Очередь](/[[language]]/[[version]]/queue)
- Database
- База данных
- [Слой](/[[language]]/[[version]]/db-layer)
- [PHQL](/[[language]]/[[version]]/db-phql)
- [ODM](/[[language]]/[[version]]/db-odm)
- [Models](/[[language]]/[[version]]/db-models)
- [Модели](/[[language]]/[[version]]/db-models)
- [Продвинутое использование](/[[language]]/[[version]]/db-models-advanced)
- [Поведения](/[[language]]/[[version]]/db-models-behaviors)
- [Cache](/[[language]]/[[version]]/db-models-cache)
- [Events](/[[language]]/[[version]]/db-models-events)
- [Кэш](/[[language]]/[[version]]/db-models-cache)
- [События](/[[language]]/[[version]]/db-models-events)
- [Метаданные](/[[language]]/[[version]]/db-models-metadata)
- [Отношения](/[[language]]/[[version]]/db-models-relationships)
- [Transactions](/[[language]]/[[version]]/db-models-transactions)
- [Транзакции](/[[language]]/[[version]]/db-models-transactions)
- [Валидаторы](/[[language]]/[[version]]/db-models-validators)
- [Миграции](/[[language]]/[[version]]/db-migrations)
- [Разбивка на страницы](/[[language]]/[[version]]/db-pagination)
Expand All @@ -62,23 +62,23 @@
- [Представления](/[[language]]/[[version]]/views)
- [Volt](/[[language]]/[[version]]/volt)
- Бизнес-логика
- [Access Control Lists](/[[language]]/[[version]]/acl)
- [Контроль доступа](/[[language]]/[[version]]/acl)
- [Аннотации](/[[language]]/[[version]]/annotations)
- [Controllers](/[[language]]/[[version]]/controllers)
- [Контроллеры](/[[language]]/[[version]]/controllers)
- [Диспетчеризация](/[[language]]/[[version]]/dispatcher)
- [Управление событиями](/[[language]]/[[version]]/events)
- [Фильтры](/[[language]]/[[version]]/filter)
- [Routing](/[[language]]/[[version]]/routing)
- [Маршрутизация](/[[language]]/[[version]]/routing)
- [Сессии](/[[language]]/[[version]]/session)
- [URL](/[[language]]/[[version]]/url)
- [Валидация](/[[language]]/[[version]]/validation)
- HTTP
- [Cookies](/[[language]]/[[version]]/cookies)
- [Request](/[[language]]/[[version]]/request)
- [Response](/[[language]]/[[version]]/response)
- Security
- Безопасность
- [Шифрование](/[[language]]/[[version]]/crypt)
- [Security](/[[language]]/[[version]]/security)
- [Защита](/[[language]]/[[version]]/security)
- i18n
- [Интернационализация](/[[language]]/[[version]]/i18n)
- [Перевод](/[[language]]/[[version]]/translate)
Expand Down

0 comments on commit 07b4335

Please sign in to comment.