protected function addFilterByWorkspace(&$script)
{
$table = $this->getTable();
$workspaceId = $table->getColumn($this->prefix . 'id')->getPhpName();
$script .= "\n /**\n * Filters all items by given workspace.\n *\n * @return " . $this->builder->getStubQueryBuilder()->getClassname() . " The current query\n */\n public function filterByWorkspace(\$workspaceId){\n return \$this->filterBy{$workspaceId}(\$workspaceId+0);\n }\n";
}