+ return $this->entries;
+ }
+
+ public function getEntriesByUserId($userId)
+ {
+ $filteredEntries = new ArrayCollection();
+ foreach ($this->entries as $entry) {
+ if ($entry->getUser()->getId() === $userId) {
+ $filteredEntries->add($entry);
+ }
+ }
+
+ return $filteredEntries;