Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If it's a plugin model, use the model alias to check for an existing property I.e. prevent this: $this->loadModel('Foo.Comments'); $this->loadModel('Bar.Comments'); // Will overwrite $this->Comments $this->loadModel('Comments'); // Will NOT overwrite $this->Comments If a user were to use referenes to multiple models with the same alias, the first one should always be returned.
- Loading branch information