Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Behavior should support generic Repository implementations #11861

@CauanCabral

Description

@CauanCabral

This is a (multiple allowed):

  • [] bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 3.next

  • Platform and Target: all.

What you did

Implement support for behavior in non-table Repositories, like cakephp/elastic-search

What happened

The constructor of Behavior accept only Table instance:

https://github.com/cakephp/cakephp/blob/master/src/ORM/Behavior.php#L153

What you expected to happen

Maybe we can replace Table typehint to RegistryInterface or other base class definition?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions