Open a2nt opened 5 years ago
still having the same issue, tried to rename class at src/Models/UserDefinedForm.php class UserDefinedForm to class UserDefinedFormTmp The table was created
Are you still experiencing this issue? I don't see why the UserDefinedForm model wouldn't build a DB table, since it inherits some database field specs from UserFormFieldEditorExtension. Do you have any steps to reproduce? We use userforms regularly in our team, and perform dev/builds regularly, and haven't come across this issue before.
Still getting this issue at SilverStripe\UserForms\Model\Recipient\EmailRecipient::getFormParent() To reproduce: 1) Disable UserDefinedForm page type by injector
SilverStripe\Core\Injector\Injector:
SilverStripe\UserForms\Model\UserDefinedForm:
class: Site\Extensions\CMSMain_HiddenClass
2) Create data object
class ElementForm extends DataObject
{
use UserForm;
private static $table_name = 'ElementForm';
}
3) Everything works ok, but try to add new recipient and you will get the same issue
UserDefinedForm::get()->byID($formID); throws an error:
Table 'dev.UserDefinedForm' doesn't exist
SilverStripe\ORM\DataList->byID(12) EmailRecipient.php:154
Checked DB that's true that UserDefinedForm table doesn't exists and it looks weird. Tried /dev/build?flush the table wasn't created
composer info: