private function createBatch($userId)
    {
        $entity = new EBatch();
        $entity->setUserRef($userId);
        $result = $this->daoBatch->create($entity);
        return $result;
    }
private function createBatch($userId)
    {
        $entity = new EBatch();
        $entity->setUserRef($userId);
        $result = $this->daoBatch->create($entity);
        return $result;
    }
private function createBatch ( $ userId ) { $ entity = new EBatch ( ) ; $ entity -> setUserRef ( $ userId ) ; $ result = $ this -> daoBatch -> create ( $ entity ) ; return $ result ; }
Register new batch for currently logged in admin user.

@return int
@throws \Exception
Register new batch for currently logged in admin user .