/** * Enable notes for Case entity * * @param Schema $schema * @param NoteExtension $noteExtension */ public static function addNoteAssociations(Schema $schema, NoteExtension $noteExtension) { $table = $schema->getTable('oro_note'); if (!$table->hasColumn($noteExtension->getAssociationColumnName('orocrm_case'))) { $noteExtension->addNoteAssociation($schema, 'orocrm_case'); } }