2015-12-03 32 views

回答

1

請按照以下步驟更新推進模型類

  1. 刪除應用程序的供應商文件夾內的所有文件
  2. 從那裏composer.json存在

    composer update 
    
  3. 文件夾執行下面的命令
  4. 將路徑變量設置爲/ path/to/vendor/bin文件夾
  5. 運行propel reverse t問生成schema.xml中指定數據庫憑據

    $ propel reverse "mysql:host=localhost;dbname=db;user=root;password=pwd" 
    

輸出上面的命令將是Schema.xml文件 5.用這個新 6.更換你的schema.xml文件中的項目命令提示符將轉到複製schema.xml文件的文件夾並執行以下命令。

propel sql:build 
    propel model:build 

那就是它。推進模型類應該得到更新。

相關問題