I have a similar thing..see below - I am unsure where it is getting
"Customer" from - the intention is that a "Business" can have many
"Business Customers" ... any help much appreciated..I am learning
Cakephp and it is fantastic.

Bake All
--------------------------------------------------------------
Use Database Config: (default/test)
[default] >
Possible Models based on your current database:
1. Aco
2. Aro
3. ArosAco
4. BusinessCustomer
5. BusinessUnit
6. Business
7. Group
8. Post
9. ServiceEvent
10. ServiceScheduled
11. Service
12. User
13. Widget
Enter a number from the list above,
type in the name of another model, or 'q' to exit
[q] > 6
Error: Missing database table 'customers' for model 'Customer'

====

SQL

--
-- Table structure for table `businesses`
--

CREATE TABLE IF NOT EXISTS `businesses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

-- --------------------------------------------------------

--
-- Table structure for table `business_customers`
--

CREATE TABLE IF NOT EXISTS `business_customers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `business_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `crm_link` varchar(255) DEFAULT NULL,
  `note` varchar(255) DEFAULT NULL,
  `created` datetime DEFAULT NULL,
  `modified` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

-- --------------------------------------------------------

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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