(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.
This commit is contained in:
pv2b 2016-08-11 21:41:28 +02:00 committed by GitHub
parent a90e2ddc31
commit bf79d5a625

View File

@ -95,7 +95,6 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase
}
/**
* override this to customize the model binding behavior
* @return null|BaseModel
*/
protected function getModel()