- Updated to match Notes-2.x
This commit is contained in:
1 parent
4b9a162696
commit
5cd0d13404
14 files changed
+243
-70
No files matched your search
+26
-2
@@ -79,10 +79,34 @@ class QueryBuilder implements Ulmus\QueryBuilder\QueryBuilderInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function dn(string $dn) : self
|
||||
{
|
||||
if ( null === ( $update = $this->getFragment(Query\Dn::class) ) ) {
|
||||
$update = new Query\Dn();
|
||||
$this->push($update);
|
||||
}
|
||||
|
||||
$update->dn = $dn;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function add(string $dn) : self
|
||||
{
|
||||
if ( null === ( $add = $this->getFragment(Query\Add::class) ) ) {
|
||||
$add = new Query\Add();
|
||||
$this->push($add);
|
||||
}
|
||||
|
||||
$add->dn = $dn;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function update(string $dn) : self
|
||||
{
|
||||
if ( null === ( $update = $this->getFragment(Query\Update::class) ) ) {
|
||||
$update = new Query\Update($this);
|
||||
$update = new Query\Update();
|
||||
$this->push($update);
|
||||
}
|
||||
|
||||
@@ -94,7 +118,7 @@ class QueryBuilder implements Ulmus\QueryBuilder\QueryBuilderInterface
|
||||
public function delete(string $dn) : self
|
||||
{
|
||||
if ( null === ( $delete = $this->getFragment(Query\Delete::class) ) ) {
|
||||
$delete = new Query\Delete($this);
|
||||
$delete = new Query\Delete();
|
||||
$this->push($delete);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user