Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

fix visibility of setFormat method #422

Merged
merged 1 commit into from Nov 10, 2015
Merged

fix visibility of setFormat method #422

merged 1 commit into from Nov 10, 2015

Conversation

jamyouss
Copy link
Contributor

This PR change the visibility of setFormat method.
This change is necessary if we need to extend the DoctrineCrudGenerator class.
If we redefine the generate method in our new class, we have an error because we call the setFormat method who is private.
The first solution is to change the visibility of setFormat method (that what i propose in this PR). The second solution is to duplicate the method in our new class (bad idea if we don't need to redefine it)

@OskarStark
Copy link
Contributor

looks OK to me

@javiereguiluz
Copy link
Contributor

It looks OK to me. I'll wait a bit more beore merging it in case someone wants to rais questions or concerns.

@fabpot
Copy link
Member

fabpot commented Nov 10, 2015

Thank you @Razmo.

@fabpot fabpot merged commit abb059f into sensiolabs:master Nov 10, 2015
fabpot added a commit that referenced this pull request Nov 10, 2015
This PR was merged into the 3.0.x-dev branch.

Discussion
----------

fix visibility of setFormat method

This PR change the visibility of setFormat method.
This change is necessary if we need to extend the DoctrineCrudGenerator class.
If we redefine the generate method in our new class, we have an error because we call the setFormat method who is private.
The first solution is to change the visibility of setFormat method (that what i propose in this PR). The second solution is to duplicate the method in our new class (bad idea if we don't need to redefine it)

Commits
-------

abb059f fix visibility of setFormat method
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
4 participants