私は困惑し、誰かがここに手がかりを持っていることを期待しています。単純なクラスの新しいclassName()のZend/Doctrineエラー
私はDoctrine 1.xをZendと思っています。
私はかなり単純なレコード型を作成しました:それに
class MYAPP_Model_CustomerContactRequest extends Doctrine_Record
{
/**
* Set table definition
*/
public function setTableDefinition()
{
$this->setTableName('my_table_name');
$this->hasColumn('id', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'unsigned' => 0,
'primary' => true,
'autoincrement' => true,
));
$this->hasColumn('customerEmail', 'string', 255, array(
'type' => 'string',
'length' => 255,
'fixed' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('vendorID', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'unsigned' => 0,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('contactStatus', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'unsigned' => 0,
'primary' => false,
'autoincrement' => false,
));
}
Other member funcs ...
}
あまりを。
vendorIDとcustomerEmailデータを送信するフォームがあります。大きな問題ではない。
コントローラの送信アクションは、ボタンを押すと正しくトリガされます。 OK。
しかし、送信アクションがクラッシュし、エラーメッセージも表示されずに死の白い画面が表示されます。私はこの時点でかなり混乱しています。
アクション読み取り提出:
public function submitAction(){
try {
$request = new MYAPP_Model_CustomerContactRequest();
}
catch (Zend_Exception $e) {
echo "Caught exception: " . get_class($e) . "\n";
echo "Message: " . $e->getMessage() . "\n";
}
/*
$request = new MYAPP_Model_CustomerContactRequest();
$request->customerEmail = $_GET['custEmail'];
$request->vendorID =$this->_targetExpertID;
$request->contactStatus = 1;
$request->save();
*/
}
あなたが見ることができるように、私は実際のレコードが保存コメントアウトていると私は単純にモデルクラスをインスタンス化しようとしています。
私は明白に明白であるか、または本当に暗く神秘的なものを紛失しているに違いありません。エラーが発生するにはここで十分ではないようです。
ステートメントの削除: $ request = new Knowbees_Model_CustomerContactRequest(); ... try節からは違いはありません。
インスタンス化をコメントアウトすると、すべてがうまくいっているかのように応答ページに進みます。
これは何かを示唆していますか?私は困惑している。