[TYPO3-mvc] hidden records seem to be unworkable with extbase + is extbase bloated ?
Steffen Müller
typo3 at t3node.com
Tue May 3 17:25:47 CEST 2011
Hi.
On 02.05.2011 19:44 Alban Cousinié wrote:
> This could be a solution. Actually I don't understand why overloading
> function createQuery() using
> $query->getQuerySettings()->setRespectEnableFields(FALSE); has no effect on
> hidden records, as it should normally disable enable fields filtering for
> all queries. It seems something doesn't connect properly here. Is this a bug
> or a missing feature ? ;-)
>
As a workaround, you can override the find... methods of the repository.
/**
* Returns all objects of this repository
*
* @return array An array of objects, empty if no objects found
*/
public function findAll() {
$query = $this->createQuery();
$query->getQuerySettings()->setRespectEnableFields(FALSE);
$result = $query->execute();
return $result;
}
--
cheers,
Steffen
TYPO3 Blog: http://www.t3node.com/
Twitter: http://twitter.com/t3node
More information about the TYPO3-project-typo3v4mvc
mailing list