Right, which I did, and it fixed the problem, but the main WTF was
that the errors spit out by cake bake gave no inclination of the
issues I was really having.

Not until I really dug into the errors and the problem did I realize
that I had created a class called File (which seemed perfectly fine to
me at the time, still does), which may be conflicting with other
classes.

Is there someplace that has a list of table names you shouldn't (read:
can't) use?

I couldn't find one, so for future reference:

Reserved Table Names:
acl_bases
acl_behaviors
acl_components
acl_nodes
acl_shells
aco_actions
acos
ajax_helpers
apc_engines
api_shells
app_controllers
app_helpers
app_models
apps
aros
auth_components
bake_shells
behavior_collections
cache_engines
cache_helpers
caches
cake_error_controllers
cake_logs
cake_schemas
cake_sessions
cake_sockets
class_registries
components
configures
connection_managers
console_shells
containable_behaviors
controller_tasks
controllers
cookie_components
data_sources
db_acl_schemas
db_acls
db_config_tasks
dbo_adodbs
dbo_db2s
dbo_firebirds
dbo_mssqls
dbo_mysqlis
dbo_mysqls
dbo_odbcs
dbo_oracles
dbo_postgreses
dbo_sources
dbo_sqlites
dbo_sybases
debuggers
dispatchers
email_components
error_handlers
extract_tasks
file_engines
files
flays
folders
form_helpers
helpers
html_helpers
http_sockets
i18n_schemas
i18n_shells
i18ns
inflectors
ini_acls
javascript_helpers
js_helper_objects
js_helpers
l10ns
magic_dbs
magic_file_resources
media_views
memcache_engines
model_behaviors
model_tasks
models
multibytes
number_helpers
objects
overloadable2s
overloadables
pages_controllers
paginator_helpers
permissions
plugin_tasks
project_tasks
request_handler_components
routers
rss_helpers
sanitizes
scaffold_views
scaffolds
schema_shells
security_components
securities
session_components
session_helpers
sessions_schemas
sets
shell_dispatchers
shells
strings
test_suite_shells
test_tasks
text_helpers
theme_views
time_helpers
translate_behaviors
tree_behaviors
validations
view_tasks
views
xcache_engines
xml_elements
xml_helpers
xml_managers
xml_nodes
xml_text_nodes
xmls


and possibly more...

On Jul 9, 4:57 pm, "Jonathan Snook" <[EMAIL PROTECTED]> wrote:
> That's not really a WTF. It's a case of there bing a File class
> already. So trying to bake a model of the same name is going to give
> you problems. I'd choose a different name.
>
> -Jonathan
>
> On 7/9/08, benjam <[EMAIL PROTECTED]> wrote:
>
>
>
> >  Apparently the problem was that I had a table called 'files', which
> >  isn't allowed.
>
> >  WTF?
>
> >  On Jul 9, 10:05 am, benjam <[EMAIL PROTECTED]> wrote:
> >  > While trying to bake a view I received the following error:
>
> >  > Fatal error: Call to undefined method File::schema() in \cake\cake
> >  > \console\libs\tasks\view.php on line 383
>
> >  > Any suggestions?
>
> >  > I was also receiving several notices and warnings when baking my
> >  > controllers, if this has anything to do with it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to