Vertaling van "ar class" in Pools
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Before we use AR to perform relational query, we need to let AR know how one AR class is related with another.
Zanim użyjemy AR aby wykonać relacyjne zapytanie, musimy powiedzieć AR jak jedna klasa AR jest powiązana z drugą.
By default, the name of the AR class is the same as the database table name.
Domyślnie, nazwa klasy AR jest identyczna z nazwą tabeli w bazie danych.
The declaration of relationships in an AR class implicitly adds a property to the class for each relationship.
Deklaracja relacji w klasie AR domyślnie dodaje właściwość do klasy dla każdej relacji.
One way to change this default value is by explicitly declaring the property in the AR class
Jednym ze sposobów zmiany tej wartości domyślnej jest bezpośrednie zdeklarowanie właściwości w klasie AR
Remember that the static method model() is required for every AR class.
Pamiętaj, że ta statyczna metoda model() jest wymagana dla każdej klasy AR.
For example, if all our AR class files are under protected/models, we can configure the application as follows
Na przykład, jeśli wszystkie nasze pliki zawierające klasy AR znajdują się w katalogu protected/models, możemy skonfigurować aplikację w następujący sposób
The validation is based on the rules specified in the rules() method of the AR class.
Walidacja bazuje na regułach określonych w metodzie rules() klasy AR.
The model() method is declared as such for every AR class (to be explained shortly).
Metoda model() jest zadeklarowana jako taka dla każdej klasy AR (wyjaśnienie tego nastąpi później).
Therefore, to compare two AR instances, we merely need to compare their primary key values, assuming they belong to the same AR class.
Dlatego też, porównując dwie instancje AR, musimy porównać jedynie ich wartości kluczy głównych, zakładając, że należą do tej samej klasy AR.
Creating Record To insert a new row into a database table, we create a new instance of the corresponding AR class, set its properties associated with the table columns, and call the save() method to finish the insertion.
Tworzenie rekordu Aby wstawić nowy wiersz do tabeli bazy danych, tworzymy nową instancję odpowiedniej klasy AR, ustawiamy jej właściwości powiązane z kolumnami tabel i wołamy metodę save() aby zakończyć wstawianie.
Tip: Because AR classes are often referenced in many places, we can import the whole directory containing the AR class, instead of including them one by one.
Wskazówka: Ponieważ klasy AR są często używane w wielu różnych miejscach, możemy zaimportować zawartość folderu zawierającego klasy AR zamiast dołączać je jedna po drugiej.
Info: To use the table prefix feature, the tableName() method for an AR class may be overridden as follows,
Info: Aby móc używać prefiksów tablic metoda tableName() dla klasy AR może być nadpisana następująco,
Each AR class represents a database table (or view) whose attributes are represented as the AR class properties, and an AR instance represents a row in that table.
Każda klasa AR reprezentuje tabelę bazy danych (lub widok), których atrybuty reprezentowane są poprzez atrybuty klasy AR a instancja AR reprezentuje wiersz w tej tabeli.