Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pivot table + inheritance bean generation #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nguyenk
Copy link
Member

@nguyenk nguyenk commented Nov 9, 2018

Quite a touchy one !

Lets imagine : you have a table A that extends table B. Table B has en foreign key to table C, and table A has a pivot table relation (many to many) also to table C, then :

class B {
   getC() : C {...}
}

class A extends B {
   getC() : array {}
}

This situation throws the following error :

PHP Fatal error:  Declaration of B::getC(): C must be compatible with A::getC(): array in ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant