mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Consistently exposed ManyManyList information through getters.
This commit is contained in:
parent
3dab996c90
commit
fd71a3d55e
@ -191,9 +191,38 @@ class ManyManyList extends RelationList {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Array Map of field => fieldtype
|
||||
* Gets the join table used for the relationship.
|
||||
*
|
||||
* @return string the name of the table
|
||||
*/
|
||||
function getExtraFields() {
|
||||
public function getJoinTable() {
|
||||
return $this->joinTable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the key used to store the ID of the local/parent object.
|
||||
*
|
||||
* @return string the field name
|
||||
*/
|
||||
public function getLocalKey() {
|
||||
return $this->localKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the key used to store the ID of the foreign/child object.
|
||||
*
|
||||
* @return string the field name
|
||||
*/
|
||||
public function getForeignKey() {
|
||||
return $this->foreignKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the extra fields included in the relationship.
|
||||
*
|
||||
* @return array a map of field names to types
|
||||
*/
|
||||
public function getExtraFields() {
|
||||
return $this->extraFields;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user