Skip to content

Instantly share code, notes, and snippets.

@mberhorst
mberhorst / accessDoctrineQueryBuilderExample
Last active August 29, 2015 14:13
Example for direct access of doctrine queryBuilder in TYPO3 Flow
$q = $this->createQuery();
// hack -> we directly access the queryBuilder from the current query $q
$qb = ObjectAccess::getProperty($q, 'queryBuilder', TRUE);
$qb
->andWhere('e.shortName = :term')
->setParameter('term', $term);
if ($productType) {
$qb
@mberhorst
mberhorst / Procfile
Last active August 29, 2015 14:13
dokku configuration for owncloud
web: vendor/bin/heroku-php-apache2