Fixed YET ANOTHER fpdo fuckup.
This library sucks donkey's balls.
This commit is contained in:
parent
f39b97c072
commit
a2fefc6560
1 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ abstract class AbstractDao implements ICrudDao, IBatchDao
|
||||||
|
|
||||||
public function findAll()
|
public function findAll()
|
||||||
{
|
{
|
||||||
$query = $this->fpdo->from($this->tableName);
|
$query = $this->fpdo->from($this->tableName)->disableSmartJoin();
|
||||||
$arrayEntities = iterator_to_array($query);
|
$arrayEntities = iterator_to_array($query);
|
||||||
return $this->arrayToEntities($arrayEntities);
|
return $this->arrayToEntities($arrayEntities);
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ abstract class AbstractDao implements ICrudDao, IBatchDao
|
||||||
{
|
{
|
||||||
if (is_array($value) and empty($value))
|
if (is_array($value) and empty($value))
|
||||||
return [];
|
return [];
|
||||||
$query = $this->fpdo->from($this->tableName)->where($columnName, $value);
|
$query = $this->fpdo->from($this->tableName)->disableSmartJoin()->where($columnName, $value);
|
||||||
$arrayEntities = iterator_to_array($query);
|
$arrayEntities = iterator_to_array($query);
|
||||||
return $this->arrayToEntities($arrayEntities);
|
return $this->arrayToEntities($arrayEntities);
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ abstract class AbstractDao implements ICrudDao, IBatchDao
|
||||||
{
|
{
|
||||||
$this->beforeDelete($entity);
|
$this->beforeDelete($entity);
|
||||||
}
|
}
|
||||||
$this->fpdo->deleteFrom($this->tableName)->where($columnName, $value)->execute();
|
$this->fpdo->deleteFrom($this->tableName)->disableSmartJoin()->where($columnName, $value)->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function afterLoad(Entity $entity)
|
protected function afterLoad(Entity $entity)
|
||||||
|
|
Loading…
Reference in a new issue