ACTIVE RECORD in English translation

Examples of using Active record in Polish and their translations into English

{-}
  • Colloquial category close
  • Official category close
  • Medicine category close
  • Ecclesiastic category close
  • Ecclesiastic category close
  • Financial category close
  • Official/political category close
  • Programming category close
  • Computer category close
utworzyć klasę Active Record, zdefiniować akcję
create an Active Record class, define an action,
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.
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,
Gdy chcesz wypełnić takimi wartościami formularz dla instancji Active Record, zamiast ponownie ustawiać wszystkie domyślne wartości,
You may want to pre-populate your Web form for an Active Record instance with these default values.
Pierwszy zakłada bezpośrednie ujęcie wywołań metod Active Record w blok transakcji, jak pokazano to poniżej.
The first way is to explicitly enclose Active Record method calls in a transactional block, like shown below.
Mechanizm ten zmodyfikuje wartości atrybutów łączących obie instancje Active Record i zapisze je w bazie danych.
The method will modify the values of the attributes that link two Active Record instances and save them to the database.
Deklarowanie relacji¶ Aby móc pracować z relacjami używając Active Record, najpierw musisz je zadeklarować w obrębie klasy.
To work with relational data using Active Record, you first need to declare relations in Active Record classes.
Modele powinny hermetyzować każdy aspekt obiektu, zgodnie z wzorcem projektowym Active Record, którego autorem jest Martin Fowler's.
Models should encapsulate every aspect of an"object," following Martin Fowler's Active Record design pattern.
Ponieważ atrybuty Active Record nazywane są zgodnie z nazwami kolumn,
Because Active Record attributes are named after table columns,
Można również śledzić i odpowiadać na eventy Active Record uruchamiane podczas cyklu życia, aby wstrzyknąć swój własny kod.
You can also respond to certain Active Record events triggered during a life cycle to inject your custom code.
Aby osiągnąć ten cel, musimy zadeklarować dodatkowe pole w klasie Room rozszerzającej Active Record, które przechowa wartość volume.
To achieve the goal, you need to declare an extra field in your Room Active Record class, which will store volume value.
Z tego powodu zwykle dodajemy klasy Active Record do przestrzeni nazw app\models
For this reason, we usually put Active Record classes under the app\models namespace
Aktualizowanie wielu wierszy jednocześnie¶ Metody przedstawione powyżej działają na pojedynczych instancjach Active Record, dodając lub aktualizując indywidualne wiersze tabeli.
Updating Multiple Rows¶ The methods described above all work on individual Active Record instances, causing inserting or updating of individual table rows.
Jeśli deklaracja odbywa się poprzez hasOne(), zwraca pojedynczą powiązaną instancję Active Record lub wartość null, w przypadku, gdy nie znaleziono powiązanych danych.
If a relation is declared with hasOne(), accessing the relation property will return the related Active Record instance or null if no related data is found.
oferuje znajomy interfejs API dla programistów, które wcześniej używane ORMs takich jak dane Mapper lub Active Record.
it offers a familiar API for developers that previously used ORMs like Data Mapper or Active Record.
Order-> link('customer', $customer); Metoda link() wymaga podania konkretnej nazwy relacji i docelowej instancji Active Record, z którą powinna być nawiązany związek.
Order-> link('customer',$customer); The link() method requires you to specify the relation name and the target Active Record instance that the relationship should be established with.
Aby łatwo opanować technikę deklarowania relacji wystarczy zapamiętać, że kolumnę należącą do relacyjnej klasy Active Record zapisuje się zaraz obok jej nazwy jak to widać w przykładzie powyżej- customer_id jest właściwością Order a id jest właściwością Customer.
An easy rule to remember this is, as you see in the example above, you write the column that belongs to the related Active Record directly next to it. You see there that customer_id is a property of Order and id is a property of Customer. Accessing Relational Data¶.
Jak wspomniano wyżej, dane pobrane z bazy danych są dostępne w obiekcie Active Record i każdy wiersz wyniku zapytania odpowiada pojedynczej instancji Active Record.
As aforementioned, the data brought back from the database are populated into Active Record instances, and each row of the query result corresponds to a single Active Record instance.
Active Record automatycznie tworzy listę brudnych atrybutów.
Active Record automatically maintains the list of dirty attributes.
Instancje Active Record są traktowane jak modele.
Active Record instances are considered as models.
Results: 55, Time: 0.0468

Word-for-word translation

Top dictionary queries

Polish - English