Skip to content

Doctrine - empty input invokes runtime exception "Bulk data cannot be empty" #1231

@michalbursik

Description

@michalbursik

Either when the input is empty or you filter out all the input data you leverage "to_dbal_table_insert" function it should probably just do nothing, but I received an Runtime exception "Bulk data cannot be empty" instead.

 df()
  ->withEntry('price', ref('node')->xpath('price')->domElementValue())
  ->filter(ref('price')->notEquals(lit(''))->isTrue())
  ->write(to_dbal_table_insert(...))
  ->run();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions