I'm playing with creating alternate models as a way to avoid custom
queries and have completeorder.php that currently looks like this
require_once(APP_PATH.DS.'models'.DS.'order.php');
class CompleteOrder extends Order {
var $name = 'CompleteOrder';
var $useTable = 'orders';
}
The base class Order has all the smarts and the parent model has a
complex hasMany condition to filter out the uncompleted orders.
Problem
======
When I call the page for the parent I get
Error: Database table complete_orders for model CompleteOrder was
not found.
I've gone through the cache and cleared it out etc.
What could be stopping this model from referencing the right table?
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment