@@ -84,8 +84,8 @@ |
||
84 | 84 | |
85 | 85 | |
86 | 86 | /** |
87 | - * @var array $validators Validation checks |
|
88 | - */ |
|
87 | + * @var array $validators Validation checks |
|
88 | + */ |
|
89 | 89 | public static $validators = []; |
90 | 90 | |
91 | 91 | /** |
@@ -51,24 +51,24 @@ |
||
51 | 51 | return $records; |
52 | 52 | } |
53 | 53 | |
54 | - /** |
|
55 | - * Uses ContextClass and ContextID to get an object. |
|
56 | - * Quick way to attach things to other objects in a one-to-one relationship |
|
57 | - * |
|
58 | - * @param array $record An array of database rows. |
|
59 | - * @return ActiveRecord|null An array of instantiated ActiveRecord models from the provided data. |
|
60 | - */ |
|
54 | + /** |
|
55 | + * Uses ContextClass and ContextID to get an object. |
|
56 | + * Quick way to attach things to other objects in a one-to-one relationship |
|
57 | + * |
|
58 | + * @param array $record An array of database rows. |
|
59 | + * @return ActiveRecord|null An array of instantiated ActiveRecord models from the provided data. |
|
60 | + */ |
|
61 | 61 | public static function getByContextObject(ActiveRecord $Record, $options = []) |
62 | 62 | { |
63 | 63 | return static::getByContext($Record::$rootClass, $Record->getPrimaryKeyValue(), $options); |
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * Same as getByContextObject but this method lets you specify the ContextClass manually. |
|
68 | - * |
|
69 | - * @param array $record An array of database rows. |
|
70 | - * @return ActiveRecord|null An array of instantiated ActiveRecord models from the provided data. |
|
71 | - */ |
|
67 | + * Same as getByContextObject but this method lets you specify the ContextClass manually. |
|
68 | + * |
|
69 | + * @param array $record An array of database rows. |
|
70 | + * @return ActiveRecord|null An array of instantiated ActiveRecord models from the provided data. |
|
71 | + */ |
|
72 | 72 | public static function getByContext($contextClass, $contextID, $options = []) |
73 | 73 | { |
74 | 74 | if (!static::fieldExists('ContextClass')) { |