build-r61. Example entity name: Strategies
create_entity.sh - Tries to name the module 'strategie' instead of 'strategy'.
GlobalHelper - cleanChild() - Turns StrategiesPeer into 'strategie'. Should transform into 'Strategies' and do entity table lookup based on 'peer_root' field.
Logged In: YES
user_id=1301905
Originator: YES
Browse Results: should use a plural form from the entities table. Currently:
"Results 1 to 1 of 1 strategys"
Logged In: YES
user_id=1301905
Originator: YES
When adding a record (executeAdd):
Fatal error: Class 'StrategysPeer' not found in /var/www/build-r61/wiser_platform/lib/model/GenericModel.php on line 279
Logged In: NO
Here is a work around for non-generic plural nouns. The only draw back is having a table in your database that may be spelled incorrectly.
https://sourceforge.net/mailarchive/forum.php?thread_name=799ac57d0806150151h18c46d3fg34d89d2b535b729f%40mail.gmail.com&forum_name=wiserplatform-support
Logged In: YES
user_id=1301905
Originator: YES
Here is the solution I'm using. The entities table already has both plural and singular forms, so I just wrote a lookup method in EntitiesPeer and any place I saw the "non-optimal" code I replaced it with my lookup. This has the added benefit of getting rid of the special cases for the 'aof' entity type also.
I'll attach the patches from my customized r61 build.
File Added: EntitiesPeer.php.patch
Patch from customized r61 build
Logged In: YES
user_id=1301905
Originator: YES
File Added: GenericModel.patch
Patch from customized r61 build
Patch from customized r61 build
Logged In: YES
user_id=1301905
Originator: YES
File Added: GenericPeer.patch