Skip to content

ResourceEvent should be optional in query filters and providers #7

Open
@weierophinney

Description

@weierophinney

As a concrete example, let's say an entity has to be created from an RPC controller. A DoctrineResource::create method is then called. Thus, when calling it, data is filtered through a ZF\Apigility\Doctrine\Server\Query\CreateFilter\DefaultCreateFilter (by default, should no extra configuration provided) as shown here

  • In this concrete class (DefaultCreateFilter), the event is not used at all.
  • Although filtering is mandatory through the DoctrineResource::create implementation, the event may not be available.
  • That should not stopped the process of creating an entity through its dedicated Resource.

Originally posted by @jguittard at zfcampus/zf-apigility-doctrine#280

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or requestQuestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions