Skip to content

Instantly share code, notes, and snippets.

View Arkemlar's full-sized avatar
💫
Recursive self-improvement

Yanosh Arkemlar

💫
Recursive self-improvement
  • Moscow, Russian Federation
View GitHub Profile
@Arkemlar
Arkemlar / AbstractExtendedCollection.php
Last active January 24, 2021 00:53
Custom doctirne collections implementation. Usage examples shown in comment below. Later I will make a repo when have time for it.
<?php
namespace Your\Namespace;
use Closure;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\Selectable;
use Doctrine\Common\Collections\Criteria;
use InvalidArgumentException;
/**