桌子映射? payumbundle symfony2

时间:2013-08-31 09:37:06

标签: php symfony mapping payum

我在payumbundle遇到了很多困难,但我认为这只是因为我不了解如何导入映射

他们在symfony2中的payum包附带了映射:

mappings:
    payum:
        is_bundle: false
        type: xml
        dir: %kernel.root_dir%/../vendor/payum/payum/src/Payum/Bridge/Doctrine/Resources/mapping
        prefix: Payum\Bridge\Doctrine\Entity
    payum_paypal_express_checkout_nvp:
        is_bundle: false
        type: xml
        dir: %kernel.root_dir%/../vendor/payum/paypal-express-checkout-nvp/src/Payum/Paypal/ExpressCheckout/Nvp/Bridge/Doctrine/Resources/mapping
        prefix: Payum\Paypal\ExpressCheckout\Nvp\Bridge\Doctrine\Entity

现在我总是得到一个表不存在的错误:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'payum_dev.payum_paypal_express_checkout_payment_details' doesn't exist

但他们从未解释如何创建此表,因为没有SQL文件。

1 个答案:

答案 0 :(得分:0)

好的,我解决了我的问题,我只需运行以下命令

php app/console doctrine:schema:create