|
|
@@ -194,7 +194,7 @@ class BelongsToMany extends Association
|
|
|
public function targetForeignKey($key = null)
|
|
|
{
|
|
|
if ($key !== null) {
|
|
|
- return $this->setTargetForeignKey($key);
|
|
|
+ $this->setTargetForeignKey($key);
|
|
|
}
|
|
|
|
|
|
return $this->getTargetForeignKey();
|
|
|
@@ -227,22 +227,6 @@ class BelongsToMany extends Association
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Sets the name of the field representing the foreign key to the source table.
|
|
|
- * If no parameters are passed current field is returned
|
|
|
- *
|
|
|
- * @param string|null $key the key to be used to link both tables together
|
|
|
- * @return string
|
|
|
- */
|
|
|
- public function foreignKey($key = null)
|
|
|
- {
|
|
|
- if ($key !== null) {
|
|
|
- $this->setForeignKey($key);
|
|
|
- }
|
|
|
-
|
|
|
- return $this->getForeignKey();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
* Sets the sort order in which target records should be returned.
|
|
|
* If no arguments are passed the currently configured value is returned
|
|
|
*
|
|
|
@@ -969,19 +953,6 @@ class BelongsToMany extends Association
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * {@inheritDoc}
|
|
|
- * @deprecated 3.4.0 Use setConditions()/getConditions() instead.
|
|
|
- */
|
|
|
- public function conditions($conditions = null)
|
|
|
- {
|
|
|
- if ($conditions !== null) {
|
|
|
- $this->setConditions($conditions);
|
|
|
- }
|
|
|
-
|
|
|
- return $this->getConditions();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
* Sets the current join table, either the name of the Table instance or the instance itself.
|
|
|
*
|
|
|
* @param string|\Cake\ORM\Table $through Name of the Table instance or the instance itself
|