This occurs when trying to setup an additional database connection to
a Firebird server.

I'm using mysql for the bulk of my app (with no problems), but in
trying to set up access to a few tables in my Firebird db some oddness
occurs.

I have the entry in the database.sql config file and bake presents me
with the correct list of tables to choose from when I try to create a
model so it can obviously successfully connect to the server and
database in question. When presented with the first question
(supplying validation criteria) I get the following error (regardless
if want validation or not):

Error: Missing database table 'employees' for model 'Model'

Note that the table name is correct, but it seems to be trying to
locate a model called 'Model'.
This oddness made me think that could be a bug, (also considering cake
can connect and return a list of tables) so I started hunting. Several
hours have passed and I'm now getting quite lost and cross-eyed from
the code and was hoping someone with more familiarity of Cake's
innards could help.

I've traced the error to the __interactive function in console/libs/
tasks/model.php, to the line:
$tempModel = new Model(false, $useTable);

I assumed this is a call to the __construct method in cake/libs/model/
model.php but I'm lost trying get any further.

If no one has an immediate thought of why this occurs, then perhaps
someone can tell me how can I get diagnostic messages from within
model.php? As there is no active browser (shell bake) and I can't seem
to access the shell->out() function to dump messages I can't easily
narrow down where this actually falls over.

Any advice or tips ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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