March 2018
Beginner to intermediate
336 pages
8h 22m
English
In the preceding example, the person responsible for each task is a related record in the users model, with a many-to-one (or a foreign key) relation. The column name used for it in the CSV file was user_id/id, and the values for that field were external identifiers for the related records, such as base.user_root for the administrator user.
Relation columns should have /id appended to their name if we will be using external identifiers to reference the related records. It is possible to instead use /.id if we will be using actual database IDs (the real numeric identifier assigned).
Unless you have good reason to do otherwise, always prefer to use external IDs instead of database IDs. Also remember that database ...
Read now
Unlock full access