[Flow] Delete Entity extends TYPO3 Abstractparty
Siva
sivaprasad at pitsolutions.com
Mon Oct 20 07:10:40 CEST 2014
Hi Rocky,
Instead of removing each item one by one , You can add "ON DELETE CASCADE". So, that means that you only have to delete items from parent table .
Best regards,
Sivaprasad S
On Monday, October 20, 2014 5:25 AM, Rocky <rockysynergy at gmail.com> wrote:
Hi,
Thanks! i changed the code as below:
public function deleteAction(\Hwwcn\Sponsor\Domain\Model\School $school) {
foreach ($school->getAccounts() as $account) {
$school->removeAccount($account);
$this->accountRepository->remove($account);
}
$this->schoolRepository->remove($school);
But still got the same error.
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list