dbms_primeidc_init...1
This commit is contained in:
parent
91da0aa6b0
commit
5dbaf3226f
@ -179,6 +179,7 @@ class QueryBuilder
|
||||
}
|
||||
|
||||
//Result부분
|
||||
//binding까지 완료한 SQL문을 return함
|
||||
public function toRawSql(): string
|
||||
{
|
||||
$sql = $this->buildSelectSql();
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user