dbms_primeidc_init...1

This commit is contained in:
최준흠 2025-04-09 10:56:48 +09:00
parent 91da0aa6b0
commit 5dbaf3226f
2 changed files with 4 additions and 3 deletions

View File

@ -179,6 +179,7 @@ class QueryBuilder
}
//Result부분
//binding까지 완료한 SQL문을 return함
public function toRawSql(): string
{
$sql = $this->buildSelectSql();

View File

@ -24,7 +24,7 @@ abstract class CommonService extends Core
}
final public function getEntity(): mixed
{
$result = $this->getModel()->getResult();
$result = $this->getModel()->first();
if (!$result) { //결과값이 없으면 null
return $result;
}
@ -34,7 +34,7 @@ abstract class CommonService extends Core
final public function getEntities(): array
{
$entitys = [];
foreach ($this->getModel()->getResults() as $result) {
foreach ($this->getModel()->get() as $result) {
$entityClass = $this->getEntityClass();
$entity = new $entityClass($result);
$pairField = $this->getModel()->getPairField();
@ -44,7 +44,7 @@ abstract class CommonService extends Core
} //
final public function getCount(): int
{
$count = $this->getModel()->countAllResults();
$count = $this->getModel()->count();
// echo "<BR>" . $this->getModel()->getLastQuery();
return $count;
}