[Flow] Delete Entity extends TYPO3 Abstractparty

Rocky rockysynergy at gmail.com
Mon Oct 20 01:50:51 CEST 2014


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.


More information about the Flow mailing list