Skip to content

Commit

Permalink
Don't match on models that do not have a distinguished name
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Nov 13, 2024
1 parent a4af228 commit 3380607
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ public function fresh(): static|false
public function is(?Model $model = null): bool
{
return ! is_null($model)
&& ! empty($this->dn)
&& ! empty($model->getDn())
&& $this->dn == $model->getDn()
&& $this->getConnectionName() == $model->getConnectionName();
}
Expand Down

0 comments on commit 3380607

Please sign in to comment.