Remove deprecteated Entry::query() override and associated noObjectAttributes() it wasnt used

This commit is contained in:
2025-04-27 09:21:51 +10:00
parent 36f8f57b77
commit ea46cf36d0
2 changed files with 2 additions and 28 deletions

View File

@@ -27,8 +27,6 @@ class Entry extends Model
// Our Attribute objects
private Collection $objects;
/* @deprecated */
private bool $noObjectAttributes = FALSE;
// For new entries, this is the container that this entry will be stored in
private string $rdnbase;
@@ -84,16 +82,6 @@ class Entry extends Model
|| (! $this->getObject($attribute)->isDirty());
}
public static function query(bool $noattrs=false): Builder
{
$o = new static;
if ($noattrs)
$o->noObjectAttributes();
return $o->newQuery();
}
/**
* As attribute values are updated, or new ones created, we need to mirror that
* into our $objects. This is called when we $o->key = $value
@@ -539,19 +527,6 @@ class Entry extends Model
return [$attribute,$tags];
}
/**
* Dont convert our $this->attributes to $this->objects when creating a new Entry::class
*
* @return $this
* @deprecated
*/
public function noObjectAttributes(): static
{
$this->noObjectAttributes = TRUE;
return $this;
}
public function setRDNBase(string $bdn): void
{
if ($this->exists)