PHP code example of idct / symfony-form-soft-delete-aware-entity-type
1. Go to this page and download the library: Download idct/symfony-form-soft-delete-aware-entity-type library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
idct / symfony-form-soft-delete-aware-entity-type example snippets
class ParentFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('test', SoftDeleteAwareEntityType::class, [
'class' => DummyEntity::class
])
;
}
}