|
55 | 55 | * @method static Builder distinct() |
56 | 56 | * |
57 | 57 | * WHERE |
58 | | - * @method static Builder where(string|\Closure $column, mixed $operatorOrValue = null, mixed $value = null) |
59 | 58 | * @method static Builder orWhere(string|\Closure $column, mixed $operatorOrValue = null, mixed $value = null) |
60 | 59 | * @method static Builder whereNot(string $column, mixed $operatorOrValue, mixed $value = null) |
61 | 60 | * @method static Builder whereRaw(string $expression, array $bindings = []) |
|
120 | 119 | * EXECUTE / FETCH |
121 | 120 | * @method static Collection get() |
122 | 121 | * @method static static|null first() |
123 | | - * @method static static|null find(int|string $id) |
124 | 122 | * @method static mixed value(string $column) |
125 | 123 | * @method static array pluck(string $column, string|null $keyColumn = null) |
126 | 124 | * @method static void chunk(int $size, callable $callback) |
|
133 | 131 | * @method static float|int avg(string $column) |
134 | 132 | * @method static float|int min(string $column) |
135 | 133 | * @method static float|int max(string $column) |
136 | | - * @method static bool exists() |
137 | 134 | * @method static bool doesntExist() |
138 | 135 | * |
139 | 136 | * WRITE |
@@ -897,7 +894,7 @@ public function toArray(): array |
897 | 894 |
|
898 | 895 | // Append any loaded (eager or lazy cached) relations. |
899 | 896 | foreach ($this->relations as $name => $value) { |
900 | | - if ($value instanceof \Foxdb\Support\Collection) { |
| 897 | + if ($value instanceof Collection) { |
901 | 898 | $attrs[$name] = array_map( |
902 | 899 | fn(object $item) => $item instanceof self ? $item->toArray() : (array) $item, |
903 | 900 | $value->all(), |
|
0 commit comments