You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Doctrine\ORM\ORMInvalidArgumentException] A new entity was found through the relationship 'HMRX\CoreBundle\Entity\AccountHolder#accountRole' that was not configured to cascade persist operations forentity: HMRX\CoreBundle\Entity\AccountRole@000000004c9582ff000000009565e70e. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this associationin the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'HMRX\CoreBundle\Entity\AccountRole#__toString()' to get a clue.
# Codeception Test Suite Configuration## Suite for acceptance tests.# Perform tests in browser using the WebDriver or PhpBrowser.# If you need both WebDriver and PHPBrowser tests - create a separate suite.actor: AcceptanceTestermodules:
enabled:
- WebDriver:
url: 'https://localhost/'browser: chrome # 'chrome' or 'firefox'capabilities:
chromeOptions:
w3c: false
- \Helper\Acceptance
- Doctrine2:
depends: Symfony
- DataFactory:
depends: Doctrine2factories: tests/_support/Factories
- \Helper\Factories
The text was updated successfully, but these errors were encountered:
What are you trying to achieve?
According to https://codeception.com/docs/modules/DataFactory.html you can create a new entity which is related to an existing entity. I can't get this functionality to work.
What do you get instead?
Details
The text was updated successfully, but these errors were encountered: