2
我正在嘗試在任務中設置Doctrine屬性,但似乎不起作用。在任務中設置Doctrine屬性
我試圖設置,是一個屬性禁用主義驗證:
$databaseManager = new sfDatabaseManager($this->configuration);
$connection = $databaseManager->getDatabase('doctrine')->getConnection();
$connection->setAttribute(Doctrine_Core::ATTR_VALIDATE, Doctrine_Core::VALIDATE_NONE);
但它不工作,因爲我創造與不驗證值的新紀錄由於最小長度規則,並且它顯示驗證錯誤。
我在做什麼錯?
可以粘貼您的錯誤信息? – codecowboy 2011-04-18 09:30:28
哪個版本的教義?還是symfony?我在1.4.11遇到了問題 – llazzaro 2011-06-02 15:10:07