@@ -113,9 +113,9 @@ public function getBeanClassName(): string
113
113
*/
114
114
private function getPluralName () : string
115
115
{
116
- if ($ this ->isAutoPivot ()) {
117
- $ name = $ this ->remoteFk ->getForeignTableName ().'By_ ' .$ this ->pivotTable ->getName ().'Via_ ' .implode ('And_ ' ,$ this ->localFk ->getUnquotedLocalColumns ());
118
- } else if (!$ this ->useAlternateName ) {
116
+ if ($ this ->isAutoPivot ()) {
117
+ $ name = $ this ->remoteFk ->getForeignTableName ().'By_ ' .$ this ->pivotTable ->getName ().'Via_ ' .implode ('And_ ' , $ this ->localFk ->getUnquotedLocalColumns ());
118
+ } elseif (!$ this ->useAlternateName ) {
119
119
$ name = $ this ->remoteFk ->getForeignTableName ();
120
120
} else {
121
121
$ name = $ this ->remoteFk ->getForeignTableName ().'By_ ' .$ this ->pivotTable ->getName ();
@@ -130,9 +130,9 @@ private function getPluralName() : string
130
130
*/
131
131
private function getSingularName () : string
132
132
{
133
- if ($ this ->isAutoPivot ()) {
134
- $ name = TDBMDaoGenerator::toSingular ($ this ->remoteFk ->getForeignTableName ()).'By_ ' .$ this ->pivotTable ->getName ().'Via_ ' .implode ('And_ ' ,$ this ->localFk ->getUnquotedLocalColumns ());
135
- } else if (!$ this ->useAlternateName ) {
133
+ if ($ this ->isAutoPivot ()) {
134
+ $ name = TDBMDaoGenerator::toSingular ($ this ->remoteFk ->getForeignTableName ()).'By_ ' .$ this ->pivotTable ->getName ().'Via_ ' .implode ('And_ ' , $ this ->localFk ->getUnquotedLocalColumns ());
135
+ } elseif (!$ this ->useAlternateName ) {
136
136
$ name = TDBMDaoGenerator::toSingular ($ this ->remoteFk ->getForeignTableName ());
137
137
} else {
138
138
$ name = TDBMDaoGenerator::toSingular ($ this ->remoteFk ->getForeignTableName ()).'By_ ' .$ this ->pivotTable ->getName ();
0 commit comments