Skip to content

Instantly share code, notes, and snippets.

@eculver

eculver/eeek.php

Created Apr 10, 2014
Embed
What would you like to do?
if ($parentId) {
$parentCondition = "node-closure.ancestor = $parentId";
$parentCondition = "node-closure.depth = 1";
} else if ($rootId) {
$parentCondition = "node-closure.ancestor = $rootId";
}
$clientCondition = "node.clientId = $clientId";
$assetCrit->addExpr('where', $parentCondition)
->addExpr('where', $clientCondition);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment