You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- See [run-tests-against-multiple-db-versions.php](./run-tests-against-multiple-db-versions.php) & [run-tests-against-multiple-db-versions-docker.php](./run-tests-against-multiple-db-versions-docker.php)
47
47
48
48
MS SQL Server, is theoretically supported but hasn't been tested.
49
49
Will provide more updates on MS SQL Server support once testing on that DB engine has been done.
@@ -54,7 +54,7 @@ Version 1.x of this package never got a stable release.
54
54
55
55
Version 2.x+ of this package is stable & uses [**aura/sqlquery**](https://github.com/auraphp/Aura.SqlQuery/tree/2.8.1#select) 2.8.0+ .
56
56
57
-
Versions 3.x+, 4.x+ & 5.x+ of this package are also stable & use [**aura/sqlquery**](https://github.com/auraphp/Aura.SqlQuery/blob/3.x/docs/select.md) 3.0.0+.
57
+
Version 3.x+ and higher of this package are also stable & use [**aura/sqlquery**](https://github.com/auraphp/Aura.SqlQuery/blob/3.x/docs/select.md) 3.0.0+.
58
58
59
59
Versions 2.x & 3.x mainly differ in the versions of **aura/sqlquery** their **Model::getSelect(): \Aura\SqlQuery\Common\Select** returns and
60
60
3.x has a few newer features like **Model::fetchOneByPkey($id, array $relations_to_include = []): ?\GDAO\Model\RecordInterface**.
Copy file name to clipboardExpand all lines: docs/indtroduction.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,14 @@ For the most part, users of this package will only be interacting with the Model
15
15
Instances of the Model class can be used to:
16
16
17
17
- Fetch data from the database into
18
-
- one Record object or multiple Record objects wrapped in either an array or a Collection object
19
-
-or one array (representing a row of data from the database) or multiple arrays (i.e. an array of arrays with each sub-array representing a row of data from the database)
18
+
- one Record object or multiple Record objects stored in either an array or a Collection object
19
+
- one array (representing a row of data from the database) or multiple arrays (i.e. an array of arrays with each sub-array representing a row of data from the database)
20
20
- Insert new data into the database table associated with the Model (You cannot insert data into views)
21
21
- Update existing data in the database table associated with the Model (You cannot update data in views)
22
22
- Delete data from the database table associated with the Model (You cannot delete data from views)
23
-
- Define relationship(s) between its associated database table / view and other database tables / views
23
+
- Define a Model's relationship(s) to other Model(s).
24
+
- These relationships can be used to fetch related data from other Models when fetching data from the Model where the relationships are defined
25
+
- For example an Authors model class can have a relationship like an Author has many Posts defined in it. When fetching Authors you can also specify that the associated Posts for each Author be included in the fetched data
24
26
- Get database table / view metadata for the table / view the Model is associated with
25
27
- and some other database operations
26
28
@@ -31,7 +33,7 @@ The Model class generates all the SQL for accessing and manipulating data in the
31
33
The Model class also acts as a Data Mapper by being able to map:
32
34
33
35
- a row of data in a database table to a Record object
34
-
- rows of data in a database table in to a Collection object containing one or more Record objects
36
+
- rows of data in a database table into a Collection object containing one or more Record objects
35
37
- foreign key relationship(s) between database tables into attribute(s) of a record object. Four relationship types are supported:
0 commit comments