-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the mapping option for the PropelParamConverter,
enhance the pk handling to use the real PK name and not only 'id', fix new sensioFrameworkBundle 2.1 requirement: ParamConverterInterface::apply() method now must return a Boolean value indicating if a conversion was done
- Loading branch information
Showing
3 changed files
with
104 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using filters without resetting the array causes invalid behavior when converting parameters in subrequests in symfony. When master request uses this converter for f.ex. a $city in
SomeController::someAction(City $city)
with mapping"city": "slug"
, and agin in a subrequest with a different mapping the filters array has mapping from the master request, which causes to generate invalid queies to find a matching row from the database.FIX (please review):
at the beginning of the
apply
function