Ticket #2565 (closed defect: fixed)
DB build ignores comments and doesn't generate useful errors
| Reported by: | sbrenneis | Owned by: | sminnee |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | Sapphire Framework | Version: | 2.2.2 |
| Severity: | medium effort / impact | Keywords: | |
| Cc: | Hours: |
Description
Creating a new class (see attached file). Cannot get db to build. Commented out offending class, but build function ignores comments and continues to spit out same useless error message:
FATAL ERROR: Bad class to singleton() - Account_Address At line 85 in /home/atcoonli/public_html/test1/sapphire/core/Core.php
user_error(Bad class to singleton() - Account_Address,256) line 85 of Core.php
singleton(Account_Address) line 175 of DatabaseAdmin?.php
DatabaseAdmin?->doBuild() line 90 of DatabaseAdmin?.php
DatabaseAdmin?->build(Array) line 261 of Controller.php
Controller->run(Array) line 104 of Director.php
Director::direct(db/build) line 158 of main.php Context Debug (Debug::showError() in line 180 of Debug.php)
- className =
Account_Address
- _SINGLETONS =
o Member =
Database record: Member
+ ID :
0
o Newsletter =
Database record: Newsletter
+ ID :
0
o Newsletter_SentRecipient =
Database record: Newsletter_SentRecipient
+ ID :
0
o Newsletter_Recipient =
Database record: Newsletter_Recipient
+ ID :
0
o NewsletterType? =
Database record: NewsletterType?
+ ID :
0
o PageComment? =
Database record: PageComment?
+ ID :
0
