main/core/Repository/ResourceQueryBuilder.php
public function whereInWorkspace(Workspace $workspace)
    {
        $this->addWhereClause('node.workspace = :workspace_id');
        $this->parameters[':workspace_id'] = $workspace->getId();

        return $this;
    }
public function whereInWorkspace(Workspace $workspace)
    {
        $this->addWhereClause('node.workspace = :workspace_id');
        $this->parameters[':workspace_id'] = $workspace->getId();

        return $this;
    }
public function whereInWorkspace ( Workspace $ workspace ) { $ this -> addWhereClause ( 'node.workspace = :workspace_id' ) ; $ this -> parameters [ ':workspace_id' ] = $ workspace -> getId ( ) ; return $ this ; }
Filters nodes belonging to a given workspace.

@param Workspace $workspace

@return ResourceQueryBuilder
Filters nodes belonging to a given workspace .