protected function getForeignAttributesForCreate()
	{
		$foreign = array($this->getPlainForeignKey() => $this->getParentKey());

		$foreign[last(explode('.', $this->morphType))] = $this->morphClass;

		return $foreign;
	}
protected function getForeignAttributesForCreate()
	{
		$foreign = array($this->getPlainForeignKey() => $this->getParentKey());

		$foreign[last(explode('.', $this->morphType))] = $this->morphClass;

		return $foreign;
	}
protected function getForeignAttributesForCreate ( ) { $ foreign = array ( $ this -> getPlainForeignKey ( ) => $ this -> getParentKey ( ) ) ; $ foreign [ last ( explode ( '.' , $ this -> morphType ) ) ] = $ this -> morphClass ; return $ foreign ; }
Get the foreign ID and type for creating a related model.

@return array
Get the foreign ID and type for creating a related model .