Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
* @method static Builder distinct()
*
* WHERE
* @method static Builder where(string|\Closure $column, mixed $operatorOrValue = null, mixed $value = null)
* @method static Builder orWhere(string|\Closure $column, mixed $operatorOrValue = null, mixed $value = null)
* @method static Builder whereNot(string $column, mixed $operatorOrValue, mixed $value = null)
* @method static Builder whereRaw(string $expression, array $bindings = [])
Expand Down Expand Up @@ -120,7 +119,6 @@
* EXECUTE / FETCH
* @method static Collection get()
* @method static static|null first()
* @method static static|null find(int|string $id)
* @method static mixed value(string $column)
* @method static array pluck(string $column, string|null $keyColumn = null)
* @method static void chunk(int $size, callable $callback)
Expand All @@ -133,7 +131,6 @@
* @method static float|int avg(string $column)
* @method static float|int min(string $column)
* @method static float|int max(string $column)
* @method static bool exists()
* @method static bool doesntExist()
*
* WRITE
Expand Down Expand Up @@ -897,7 +894,7 @@ public function toArray(): array

// Append any loaded (eager or lazy cached) relations.
foreach ($this->relations as $name => $value) {
if ($value instanceof \Foxdb\Support\Collection) {
if ($value instanceof Collection) {
$attrs[$name] = array_map(
fn(object $item) => $item instanceof self ? $item->toArray() : (array) $item,
$value->all(),
Expand Down
Loading