PHP code example of codelytv / criteria-to-doctrine
1. Go to this page and download the library: Download codelytv/criteria-to-doctrine library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codelytv / criteria-to-doctrine example snippets
public function matching(Criteria $criteria): array
{
$doctrineCriteria = (new CriteriaToDoctrineConverter())->convert($criteria);
return $this->repository(BackofficeCourse::class)->matching($doctrineCriteria)->toArray();
}