Hi there, Any advice much appreciated. When I am baking my tables I get an error, which I think is linked to my table naming. Please see below...
The intention is a "Business Customer" can have many "Service Scheduleds" via "business_customer_id" 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' -- -- 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 ; -- -------------------------------------------------------- -- -- Table structure for table `service_scheduleds` -- CREATE TABLE IF NOT EXISTS `service_scheduleds` ( `id` int(11) NOT NULL AUTO_INCREMENT, `business_customer_id` int(11) NOT NULL, `service_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `day` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `services` -- CREATE TABLE IF NOT EXISTS `services` ( `id` int(11) NOT NULL AUTO_INCREMENT, `business_unit_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `service_events` -- CREATE TABLE IF NOT EXISTS `service_events` ( `id` int(11) NOT NULL AUTO_INCREMENT, `service_id` int(11) NOT NULL, `service_name` varchar(255) NOT NULL, `date` date NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- 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
