Hi

I am attempting to bake a model/view/controller that has a belongsTo 
association to a model called: "process".  Therefore this model (called 
"ouput") has a foreign key process_id for the association.

However, when I run bake for "output" I get a fatal error thus:

PHP Fatal error:  Call to a member function on a non-object in 
/prototype/dev/cake/scripts/bake.php on line 965
<br />
<b>Fatal error</b>:  Call to a member function on a non-object in 
<b>/prototype/dev/cake/scripts/bake.php</b> on line <b>965</b><br />


Upon investigation of the models involved I have found that Bake is 
interpreting "process_id" to mean a model called "proces" rather than 
"process".

I thought that adding an irregular plural:

   $irregularPlural = array('process' => 'processes');

might solve the problem, but it seems to be ignored.

Can anyone suggest how I might solve this problem?  Any suggestions 
greatly appreciated.

Cake version is latest stable build running on Linux with PHP 4.3.11

Regards,
Langdon

--~--~---------~--~----~------------~-------~--~----~
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