2
votes

I'm having difficulty in creating a Cake 2.0 plugin with a model that is not associated with an underlying database table.

The Cake Manual says that you can set the variable public $useTable = false; but when I load my plugin with this in my model I still get the missing database table error message.

This is the beginning of my class definition (where my plugin is called OneTime):

class Ticket extends OneTimeAppModel {

/*
 * This model does not use a database table
 *
 * @var boolean
 */
public $useTable = FALSE;

What am I doing wrong here?

1
This could be a bug. Consider asking/reporting it for the Cake2 guys. ask.cakephp.org and cakephp.lighthouseapp.com/dashboard respectively. - sibidiba

1 Answers

0
votes

For a workaround in the meanwhile, I've been using this:

public $uses = array();