|
@@ 82-89 (lines=8) @@
|
| 79 |
|
* |
| 80 |
|
* @return string |
| 81 |
|
*/ |
| 82 |
|
private function getPluralName() : string |
| 83 |
|
{ |
| 84 |
|
if (!$this->useAlternateName) { |
| 85 |
|
return TDBMDaoGenerator::toCamelCase($this->remoteFk->getForeignTableName()); |
| 86 |
|
} else { |
| 87 |
|
return TDBMDaoGenerator::toCamelCase($this->remoteFk->getForeignTableName()).'By'.TDBMDaoGenerator::toCamelCase($this->pivotTable->getName()); |
| 88 |
|
} |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
/** |
| 92 |
|
* Returns the singular name. |
|
@@ 96-103 (lines=8) @@
|
| 93 |
|
* |
| 94 |
|
* @return string |
| 95 |
|
*/ |
| 96 |
|
private function getSingularName() : string |
| 97 |
|
{ |
| 98 |
|
if (!$this->useAlternateName) { |
| 99 |
|
return TDBMDaoGenerator::toCamelCase(TDBMDaoGenerator::toSingular($this->remoteFk->getForeignTableName())); |
| 100 |
|
} else { |
| 101 |
|
return TDBMDaoGenerator::toCamelCase(TDBMDaoGenerator::toSingular($this->remoteFk->getForeignTableName())).'By'.TDBMDaoGenerator::toCamelCase($this->pivotTable->getName()); |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
/** |
| 106 |
|
* Returns the code of the method. |