Fixed YET ANOTHER fpdo fuckup.

This library sucks donkey's balls.
This commit is contained in:
Marcin Kurczewski 2014-10-17 19:29:38 +02:00
parent f39b97c072
commit a2fefc6560

View file

@ -64,7 +64,7 @@ abstract class AbstractDao implements ICrudDao, IBatchDao
public function findAll()
{
$query = $this->fpdo->from($this->tableName);
$query = $this->fpdo->from($this->tableName)->disableSmartJoin();
$arrayEntities = iterator_to_array($query);
return $this->arrayToEntities($arrayEntities);
}
@ -151,7 +151,7 @@ abstract class AbstractDao implements ICrudDao, IBatchDao
{
if (is_array($value) and empty($value))
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);
return $this->arrayToEntities($arrayEntities);
}
@ -170,7 +170,7 @@ abstract class AbstractDao implements ICrudDao, IBatchDao
{
$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)