Skip to content

Commit

Permalink
Merge pull request #11071 from greg0ire/remove-wrong-assertion
Browse files Browse the repository at this point in the history
Remove wrong assertion
  • Loading branch information
greg0ire authored Nov 20, 2023
2 parents b73d44b + 9a281f5 commit 2c06ffa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/PersistentCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ private function getUnitOfWork(): UnitOfWork
*/
public function hydrateAdd(mixed $element): void
{
assert($this->association !== null);
$this->unwrap()->add($element);

// If _backRefFieldName is set and its a one-to-many association,
Expand Down

0 comments on commit 2c06ffa

Please sign in to comment.