0

我是 OroCRM 和 Symfony2 的新手,在我的 DefaultController 的方法更新中我创建了一个 OroCRM\Bundle\MagentoBundle\Controller\CustomerController 的实例并调用它的方法

    $customerController = new CustomerController();
    $customerController->update($extendCustomer);

$extendCustomer 是 OroCRM\Bundle\MagentoBundle\Entity\Customer 的继承

    class ExtendCustomer extends Customer

但是当我调用 CustomerController 的方法更新时,它会抛出这个错误:

Fatal error: Call to a member function get() on a non-object in /var/www/html/crm-application/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php on line 350

我已经用了 2 天的时间在谷歌上搜索了所有可以搜索的内容,但它仍然无法正常工作。我知道有一些服务,我不太了解。请给我一些建议。非常感谢。

4

0 回答 0