-
Notifications
You must be signed in to change notification settings - Fork 155
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
Update PropelParamConverter.php #316
Conversation
add "query_method" option equivalence of "repository_method" in doctrine
Thanks @arffak, can you please fix CS? |
@marcj FIX CS done |
throw new \LogicException('Unable to guess how to get a Propel object from the request information.'); | ||
$this->queryMethod = $queryMethod = isset($options['query_method']) ? $options['query_method'] : null; | ||
|
||
if ($this->queryMethod != null and \method_exists($classQuery, $this->queryMethod)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and \method_exists
=> && method_exists
done |
throw new \LogicException('Unable to guess how to get a Propel object from the request information.'); | ||
$this->queryMethod = $queryMethod = isset($options['query_method']) ? $options['query_method'] : null; | ||
|
||
if ($this->queryMethod != null and method_exists($classQuery, $this->queryMethod)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still and
👍 |
@@ -50,6 +50,12 @@ class PropelParamConverter implements ParamConverterInterface | |||
protected $withs; | |||
|
|||
/** | |||
* name of method use to call a query method | |||
* @var string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is blank line missing before the @var
.
After applying the outstanding changes, could you please rebase and squash the commits? |
Thanks, I merged and fix this CS myself :) |
* Update PropelParamConverter.php add "query_method" option equivalence of "repository_method" in doctrine * FIX CS * FIX CS * \method_exists => && method_exists * and => &&
add "query_method" option equivalence of "repository_method" in doctrine