Remove deprecteated Entry::query() override and associated noObjectAttributes() it wasnt used
This commit is contained in:
parent
36f8f57b77
commit
ea46cf36d0
@ -45,7 +45,7 @@ class HomeController extends Controller
|
|||||||
* Create a new object in the LDAP server
|
* Create a new object in the LDAP server
|
||||||
*
|
*
|
||||||
* @param EntryAddRequest $request
|
* @param EntryAddRequest $request
|
||||||
* @return View
|
* @return \Illuminate\View\View
|
||||||
* @throws InvalidUsage
|
* @throws InvalidUsage
|
||||||
*/
|
*/
|
||||||
public function entry_add(EntryAddRequest $request): \Illuminate\View\View
|
public function entry_add(EntryAddRequest $request): \Illuminate\View\View
|
||||||
@ -189,8 +189,7 @@ class HomeController extends Controller
|
|||||||
{
|
{
|
||||||
$dn = Crypt::decryptString($id);
|
$dn = Crypt::decryptString($id);
|
||||||
|
|
||||||
$result = (new Entry)
|
$result = Entry::query()
|
||||||
->query()
|
|
||||||
->setDn($dn)
|
->setDn($dn)
|
||||||
->recursive()
|
->recursive()
|
||||||
->get();
|
->get();
|
||||||
|
@ -27,8 +27,6 @@ class Entry extends Model
|
|||||||
|
|
||||||
// Our Attribute objects
|
// Our Attribute objects
|
||||||
private Collection $objects;
|
private Collection $objects;
|
||||||
/* @deprecated */
|
|
||||||
private bool $noObjectAttributes = FALSE;
|
|
||||||
// For new entries, this is the container that this entry will be stored in
|
// For new entries, this is the container that this entry will be stored in
|
||||||
private string $rdnbase;
|
private string $rdnbase;
|
||||||
|
|
||||||
@ -84,16 +82,6 @@ class Entry extends Model
|
|||||||
|| (! $this->getObject($attribute)->isDirty());
|
|| (! $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
|
* 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
|
* into our $objects. This is called when we $o->key = $value
|
||||||
@ -539,19 +527,6 @@ class Entry extends Model
|
|||||||
return [$attribute,$tags];
|
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
|
public function setRDNBase(string $bdn): void
|
||||||
{
|
{
|
||||||
if ($this->exists)
|
if ($this->exists)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user