Naprawiono lukę w zabezpieczeniach create_with w Active Record.
Fixed a vulnerability in the create_with method in Active Record.
Używając Active Record możesz w łatwy sposób zapisać dane w bazie, w następujących krokach.
Using Active Record, you can easily save data to the database by taking the following steps.
Więcej szczegółowych informacji znajdziesz w sekcji Active Record.
You may find more detailed information in the Active Record section.
Yii automatycznie definiuje atrybut Active Record dla każdej kolumny powiązanej tabeli.
Yii automatically defines an attribute in Active Record for every column of the associated table.
Do rozwiązania tych problemów możemy użyć wzorca Rekordu Aktywnego ang. Active Record.
To solve these problems, we can use Active Record.
Kiedy wywołujesz save(), aby zapisać instancję Active Record, tylko brudne atrybuty są zapisywane.
When you call save() to save an Active Record instance, only dirty attributes are being saved.
Są dwa sposoby użycia transakcji podczas pracy z Active Record.
There are two ways of using transactions while working with Active Record.
Tak jak w zwyczajnych modelach, instancje Active Record posiadają również mechanizm masowego przypisywania.
Like normal models, Active Record instances also enjoy the massive assignment feature.
Uwaga: Nie możesz łączyć w ten sposób dwóch świeżo utworzonych instancji Active Record.
Note: You cannot link two newly created Active Record instances.
Podczas tworzenia nowej instancji Active Record za pomocą operatora new,
When creating a new Active Record instance via the new operator,
wartości za pomocą kwerendy i przypisanie ich w Active Record.
values from query and store it inside the Active Record.
Można odróżnić dwa stany instancji Active Record sprawdzając wartość jej właściwości isNewRecord.
You can differentiate the two states of an Active Record instance by checking its isNewRecord property value.
Możesz odczytać wartości kolumn odwołując się do atrybutów obiektu Active Record, dla przykładu.
You can access the column values by accessing the attributes of the Active Record instances, for example.
Po zadeklarowaniu klasy Active Record, możesz użyć jej do pobrania danych z powiązanej tabeli bazy danych.
After declaring an Active Record class, you can use it to query data from the corresponding database table.
która usuwa istniejący związek pomiędzy dwoma instancjami Active Record.
which breaks an existing relationship between two Active Record instances.
W poniższym przykładzie deklarujemy klasę Active Record nazwaną Customer dla tabeli customer w bazie danych.
In the following example, we declare an Active Record class named Customer for the customer database table.
NIE wykona automatycznie żadnego procesu walidacji danych podczas zapisywania instancji Active Record.
method will NOT perform any data validation while saving the affected Active Record instance.
Active Record pozwala na deklarowanie relacji pomiędzy klasami Active Record zasilanymi przez różne bazy danych.
Active Record allows you to declare relations between Active Record classes that are powered by different databases.
Pamiętaj, że walidacja danych zostanie przeprowadzona niezależnie od tego, czy instancja Active Record zawiera brudne atrybuty czy też nie.
Note that data validation will be performed regardless if the Active Record instance has dirty attributes or not.
Domyślnie Active Record używa komponentu aplikacji db jako połączenia z bazą danych,
By default, Active Record uses the db application component as the DB connection to access
Dla przykładu, załóżmy, że Customer jest klasą Active Record, powiązaną z tabelą customer i name jest kolumną w tabeli customer.
For example, assume Customer is an Active Record class which is associated with the customer table and name is a column of the customer table.
każde z nich jest reprezentowane przez model Setting active record.
a name-value pair and is represented by a Setting active record model.
Funkcjonalność ta umożliwia przypisanie wartości wielu atrybutom Active Record za pomocą pojedynczej instrukcji PHP,
Using this feature, you can assign values to multiple attributes of an Active Record instance in a single PHP statement,
Model może być bazowany na klasie Active Record, reprezentując dane z bazy danych,
The model can be either based upon an Active Record class, representing some data from the database,
utworzyć klasę Active Record, zdefiniować akcję
create an Active Record class, define an action,
Results: 66,
Time: 0.0382
How to use "active record" in a Polish sentence
Nie testuj standardowych połączeń, walidacji, zakresów z Active Record.
Kurs przydał mi się nie tylko w styczności z czystym SQL-em, ale także w pracy z Active Record (Rails) oraz z Sequel-Rails.
Podstawy Active Record (41)
Podstawy mechanizmu Active Record (41)
Podstawowe klasy Active Record (46)
Atrybuty (48)
Klasy złożone (50)
Zachowania (55)
W kolejnym rozdziale (60)
4.
W Active Record można to zrobić, używając znaku ?
Dzięki nowym umiejętnościom, które nabyliśmy w pracy z Active Record, możemy pobrać dane użytkowników, których nazwisko roz- poczyna się określoną literą.
Relacje w Active Record (61)
belongs_to (61)
has_many (64)
has_one (66)
has_and_belongs_to_many (67)
acts_as_list (70)
Drzewa (72)
O czym nie powiedzieliśmy (75)
Wybiegając w przyszłość (76)
5.
Niektóre z wzorców z ksiązki Fowlera nie znalazły szerszego uznania w świecie Javy, jak Active Record – i w tym akurat przypadku może to i lepiej!
ActiveRecord::Errors#generate_message (korzysta z niego walidacja modułu Active Record, ale może być też wywołany ręcznie) używa human_name i human_attribute_name (zobacz wyżej).
Implementacja tego projektu wymaga kilku różnych warstw, włącznie z paroma pli- kami części i opanowaniem nowych właściwości Active Record.
Moduł Active Record zawiera specjalne miejsce, w którym możesz umieścić tłumaczenia komunikatów.
How to use "active record" in an English sentence
Validations for Non Active Record Models.
Why use the Active Record Pattern?
Active Record Pattern: Objects saturate and persist themselves.
Check out the active record oracle adapter.
Repository, Data Mapper, Active Record etc.
Update: AIR Active Record is open sourced.
Active record in the Link and not active record in the Satellite.
2.
Polski
Český
Deutsch
عربى
Български
বাংলা
Dansk
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Bahasa indonesia
Italiano
日本語
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt
中文