private function _buildNestedResource() { $table = $this->requestContainer->getTable(); $parentAssociation = $this->requestContainer->getParentAssociation(); $this->builder = $this->builder->where($table . '.' . head(array_keys($parentAssociation)), '=', head($parentAssociation)); return $this->builder; }