mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed spelling mistake in HasManyList
This commit is contained in:
parent
9c0a606abf
commit
db5ac15bb1
@ -39,7 +39,7 @@ class HasManyList extends RelationList {
|
||||
*/
|
||||
function add($item) {
|
||||
if(is_numeric($item)) $item = DataObject::get_by_id($this->dataClass, $item);
|
||||
else if(!($item instanceof $this->dataClass)) user_eror("HasManyList::add() expecting a $this->dataClass object, or ID value", E_USER_ERROR);
|
||||
else if(!($item instanceof $this->dataClass)) user_error("HasManyList::add() expecting a $this->dataClass object, or ID value", E_USER_ERROR);
|
||||
|
||||
// Validate foreignID
|
||||
if(!$this->foreignID) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user