Commit bf79d5a6 authored by pv2b's avatar pv2b Committed by GitHub

(base) Do not encourage overriding getModel()

Overriding getModel() is not to be done lightly. The code relies on the same object being there through multiple calls to getModel(). Any overriding methods should preserve this same behavior. For this reason, we should not encourage tinkering with this in a comment, better be silent on the matter.
parent a90e2ddc
...@@ -95,7 +95,6 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase ...@@ -95,7 +95,6 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase
} }
/** /**
* override this to customize the model binding behavior
* @return null|BaseModel * @return null|BaseModel
*/ */
protected function getModel() protected function getModel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment