public function __construct(Repository $repo, $autoflush = true) { $this->repo = $repo; $this->autoflush = $autoflush; }