File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,7 @@ abstract class ActiveRecord
22
22
* It is preferable to use this method instead of the constructor because
23
23
* it uses ORM services to create the entity.
24
24
*
25
- * Equals to calling {@see ORMInterface::make()}.
26
- *
27
- * @param array<non-empty-string, mixed> $data An associative array where keys are property names
28
- * and values are property values.
25
+ * @note Equals to calling {@see ORMInterface::make()}.
29
26
*
30
27
* Example:
31
28
*
@@ -35,6 +32,9 @@ abstract class ActiveRecord
35
32
36
33
* ]);
37
34
* ```
35
+ *
36
+ * @param array<non-empty-string, mixed> $data An associative array where keys are property names
37
+ * and values are property values.
38
38
*/
39
39
public static function make (array $ data ): static
40
40
{
@@ -51,6 +51,8 @@ final public static function findByPK(mixed $primaryKey): ?static
51
51
52
52
/**
53
53
* Finds the first single record based on the given scope.
54
+ *
55
+ * @note Limit of 1 will be added to the query.
54
56
*/
55
57
final public static function findOne (array $ scope = []): ?static
56
58
{
You can’t perform that action at this time.
0 commit comments