mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
(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:
parent
a90e2ddc31
commit
bf79d5a625
@ -95,7 +95,6 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase
|
||||
}
|
||||
|
||||
/**
|
||||
* override this to customize the model binding behavior
|
||||
* @return null|BaseModel
|
||||
*/
|
||||
protected function getModel()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user