예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function up(Schema $schema, QueryBag $queries)
 {
     $migration = new OroCRMCaseBundle();
     $migration->up($schema, $queries);
     $migration11 = new OroCRMCaseBundle11();
     $migration11->up($schema, $queries);
     OroCRMCaseBundle12::addOrganization($schema);
     $this->attachmentExtension->addImageRelation($schema, 'orocrm_case_comment', 'attachment');
 }
예제 #2
0
 /**
  * @param Schema              $schema
  * @param AttachmentExtension $attachmentExtension
  */
 public static function addAvatarToUser(Schema $schema, AttachmentExtension $attachmentExtension)
 {
     $attachmentExtension->addImageRelation($schema, 'oro_user', 'avatar', [], 2, 58, 58);
 }
예제 #3
0
 /**
  * @param Schema $schema
  */
 protected function addImageAssociations(Schema $schema)
 {
     $this->attachmentExtension->addImageRelation($schema, self::CMS_LOGIN_PAGE_TABLE, 'logoImage', [], self::MAX_LOGO_IMAGE_SIZE_IN_MB);
     $this->attachmentExtension->addImageRelation($schema, self::CMS_LOGIN_PAGE_TABLE, 'backgroundImage', [], self::MAX_BACKGROUND_IMAGE_SIZE_IN_MB);
 }
 /**
  * @param Schema $schema
  */
 protected function addAttachmentAssociations(Schema $schema)
 {
     $this->attachmentExtension->addImageRelation($schema, self::PRODUCT_TABLE_NAME, 'image', [], self::MAX_PRODUCT_IMAGE_SIZE_IN_MB);
     $this->attachmentExtension->addAttachmentAssociation($schema, self::PRODUCT_TABLE_NAME, [], self::MAX_PRODUCT_ATTACHMENT_SIZE_IN_MB);
 }
예제 #5
0
 /**
  * @param Schema              $schema
  * @param AttachmentExtension $attachmentExtension
  */
 public static function addPhotoToContact(Schema $schema, AttachmentExtension $attachmentExtension)
 {
     $attachmentExtension->addImageRelation($schema, 'orocrm_contact', 'picture', [], 2, 58, 58);
 }