SHARE
TWEET

ParentRecordType

a guest Dec 3rd, 2018 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Fixes empty prototype
  2. if (!$record->getChildren()->count())
  3.     $record->addChild(
  4.         (new Record)
  5.             ->setCategory($record->getCategory())
  6.             ->setBudget($record->getBudget())
  7.     );
  8.  
  9. $form = $this->createForm(ParentRecordType::class, $record);
  10.  
  11. $form->handleRequest($request);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top