Programming Language PHP

Namespace Oro\Bundle\ContactBundle\Migrations\Schema\v1_8

Class OroContactBundle

Method/Function addOrganization

Total Examples 1

1 code examples of PHP Oro\Bundle\ContactBundle\Migrations\Schema\v1_8\OroContactBundle::addOrganization extracted from open source projects

Was this example useful?
0
                                                    /**
     * @inheritdoc
     */
    public function up(Schema $schema, QueryBag $queries)
    {
        /** Tables generation **/
        $this->createOrocrmContactTable($schema);
        $this->createOrocrmContactAddressTable($schema);
        $this->createOrocrmContactAdrToAdrTypeTable($schema);
        $this->createOrocrmContactEmailTable($schema, $queries);
        $this->createOrocrmContactGroupTable($schema);
        $this->createOrocrmContactMethodTable($schema);
        $this->createOrocrmContactPhoneTable($schema);
        $this->createOrocrmContactSourceTable($schema);
        $this->createOrocrmContactToContactGrpTable($schema);

        /** Foreign keys generation **/
        $this->addOrocrmContactForeignKeys($schema);
        $this->addOrocrmContactAddressForeignKeys($schema);
        $this->addOrocrmContactAdrToAdrTypeForeignKeys($schema);
        $this->addOrocrmContactEmailForeignKeys($schema);
        $this->addOrocrmContactGroupForeignKeys($schema);
        $this->addOrocrmContactPhoneForeignKeys($schema);
        $this->addOrocrmContactToContactGrpForeignKeys($schema);
        $this->oroEmailAddressForeignKeys($schema);

        AttachmentMigration::addPhotoToContact($schema, $this->attachmentExtension);
        ActivityMigration::addActivityAssociations($schema, $this->activityExtension);
        $this->activityExtension->addActivityAssociation($schema, 'oro_note', 'orocrm_contact');
        ContactOrganizations::addOrganization($schema);
    }
                                            
OroContactBundle's Other Methods