Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment keeps getting appended #1537

Open
vatsake opened this issue Apr 6, 2024 · 0 comments
Open

Comment keeps getting appended #1537

vatsake opened this issue Apr 6, 2024 · 0 comments
Labels

Comments

@vatsake
Copy link

vatsake commented Apr 6, 2024

Versions:

  • ide-helper Version: 3.0.0
  • Laravel Version: 11.0
  • PHP Version 8.2

Description:

I'm using laravel-adjacency-list package.
For some reason whenever I run php artisan ide-helper:models 2 lines keep getting added to a model
that uses the package's trait.

Lines that keep getting appended:

 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> all($columns = ['*'])
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> get($columns = ['*'])

A model example:

<?php

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Staudenmeir\LaravelAdjacencyList\Eloquent\HasRecursiveRelationships;

/**
 * App\Models\MaterialDetails
 *
 * @property int $id
 * @property int|null $parent_id
 * @property int $material_id
 * @property string $type
 * @property string|null $value
 * @property bool $default
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @property-read \Illuminate\Database\Eloquent\Collection<int, MaterialDetails> $children
 * @property-read int|null $children_count
 * @property-read \App\Models\Material $material
 * @property-read MaterialDetails|null $parent
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails query()
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails whereDefault($value)
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails whereMaterialId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails whereParentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails whereValue($value)
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails withTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails withoutTrashed()
 * @property int $sort_order
 * @method static \Illuminate\Database\Eloquent\Builder|MaterialDetails whereSortOrder($value)
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $ancestors The model's recursive parents.
 * @property-read int|null $ancestors_count
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $ancestorsAndSelf The model's recursive parents and itself.
 * @property-read int|null $ancestors_and_self_count
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $bloodline The model's ancestors, descendants and itself.
 * @property-read int|null $bloodline_count
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $childrenAndSelf The model's direct children and itself.
 * @property-read int|null $children_and_self_count
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $descendants The model's recursive children.
 * @property-read int|null $descendants_count
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $descendantsAndSelf The model's recursive children and itself.
 * @property-read int|null $descendants_and_self_count
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $parentAndSelf The model's direct parent and itself.
 * @property-read int|null $parent_and_self_count
 * @property-read \App\Models\MaterialDetails|null $rootAncestor The model's topmost parent.
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $siblings The parent's other children.
 * @property-read int|null $siblings_count
 * @property-read \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection|\App\Models\MaterialDetails[] $siblingsAndSelf All the parent's children.
 * @property-read int|null $siblings_and_self_count
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> all($columns = ['*'])
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails breadthFirst()
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails depthFirst()
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails doesntHaveChildren()
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> get($columns = ['*'])
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails getExpressionGrammar()
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails hasChildren()
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails hasParent()
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails isLeaf()
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails isRoot()
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails tree($maxDepth = null)
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails treeOf(\Illuminate\Database\Eloquent\Model|callable $constraint, $maxDepth = null)
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails whereDepth($operator, $value = null)
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails withGlobalScopes(array $scopes)
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Builder|MaterialDetails withRelationshipExpression($direction, callable $constraint, $initialDepth, $from = null, $maxDepth = null)
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> all($columns = ['*'])
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> get($columns = ['*'])
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> all($columns = ['*'])
.
.
.
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> get($columns = ['*'])
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> all($columns = ['*'])
 * @method static \Staudenmeir\LaravelAdjacencyList\Eloquent\Collection<int, static> get($columns = ['*'])
 * @mixin \Eloquent
 */
class MaterialDetails extends Model
{
    use HasFactory;
    use HasRecursiveRelationships;

    public $table = 'material_details';
    public $timestamps = false;
    public $guarded = [];
    public $with = [];
}
@vatsake vatsake added the bug label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant