2021-03-01 16:26:06 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Ulmus\Repository;
|
|
|
|
|
2022-04-13 03:31:48 +00:00
|
|
|
use Ulmus\{Repository, Query, Ulmus, Common};
|
2021-03-01 16:26:06 +00:00
|
|
|
|
|
|
|
class MssqlRepository extends Repository {
|
2022-01-28 16:37:35 +00:00
|
|
|
|
|
|
|
protected function finalizeQuery() : void
|
|
|
|
{
|
2022-06-21 15:38:06 +00:00
|
|
|
if ( null === $order = $this->queryBuilder->getFragment(Query\OrderBy::class) ) {
|
|
|
|
$this->orderBy("(SELECT 0)");
|
2022-04-13 13:12:00 +00:00
|
|
|
}
|
2022-01-28 16:37:35 +00:00
|
|
|
}
|
2021-03-01 16:26:06 +00:00
|
|
|
|
2022-04-13 03:31:48 +00:00
|
|
|
protected function serverRequestCountRepository() : Repository
|
|
|
|
{
|
|
|
|
return new static($this->entityClass, $this->alias, $this->adapter);
|
|
|
|
}
|
2021-03-01 16:26:06 +00:00
|
|
|
}
|