Programming Language PHP
Namespace Oro\Bundle\AccountBundle\Migrations\Schema\v1_10
Class InheritanceActivityTargets
Total Examples 1
1 code examples of PHP Oro\Bundle\AccountBundle\Migrations\Schema\v1_10\InheritanceActivityTargets extracted from open source projects
/**
* @inheritdoc
*/
public function up(Schema $schema, QueryBag $queries)
{
/** Tables generation **/
$this->createOrocrmAccountTable($schema, $queries);
$this->createOrocrmAccountToContactTable($schema);
/** Foreign keys generation **/
$this->addOrocrmAccountForeignKeys($schema);
$this->addOrocrmAccountToContactForeignKeys($schema);
$this->activityExtension->addActivityAssociation($schema, 'oro_note', 'orocrm_account');
$this->activityExtension->addActivityAssociation($schema, 'oro_email', 'orocrm_account');
$this->attachmentExtension->addAttachmentAssociation(
$schema,
'orocrm_account',
[
'image/*',
'application/pdf',
'application/zip',
'application/x-gzip',
'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.ms-powerpoint',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
],
2
);
InheritanceActivityTargets::addInheritanceTargets($schema, $this->activityListExtension);
// update to 1.8
$addReferredBy = new AddReferredBy();
$addReferredBy->up($schema, $queries);
}