mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Add method to get foreign class key on polymorphic has_many
This commit is contained in:
parent
6ced576b2f
commit
2836478c72
@ -29,6 +29,14 @@ class PolymorphicHasManyList extends HasManyList
|
|||||||
return $this->dataQuery->getQueryParam('Foreign.Class');
|
return $this->dataQuery->getQueryParam('Foreign.Class');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the field name which holds the related object class.
|
||||||
|
*/
|
||||||
|
public function getForeignClassKey(): string
|
||||||
|
{
|
||||||
|
return $this->classForeignKey;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new PolymorphicHasManyList relation list.
|
* Create a new PolymorphicHasManyList relation list.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user