I'm pretty new to Phalcon and am really enjoying working with it. However, I've run across an issue that I can't seem to resolve. Based on my research, the answer seems simple, yet it eludes me.
I have the following model with a sequence that doesn't match the default (notice the capital I in Id). Obviously, I have implemented getSequenceName, but I still get an error every time I try to insert a record.
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_testid_seq" does not exist'
Database is Postrgres. What am I missing?
class Test extends Phalcon\Mvc\Model
{
public function initialize()
{
//echo $this->sequenceName;
}
public function getSequenceName()
{
return "test_testId_seq";
}
}
Thanks in advance.