Skip to content

Instantly share code, notes, and snippets.

View dvesh3's full-sized avatar

Divesh Pahuja dvesh3

View GitHub Profile
@dvesh3
dvesh3 / pimcore11_migrate_o_prefixes_recyclebin.php
Last active October 9, 2023 12:19
Pimcore 11: Script to migrate data for replacing o_ prefixes ** IMPORTANT: Not tested properly so please backup your data before upgrade
<?php
// file should be located in project root
use Pimcore\Tool\Serialize;
use Pimcore\Tool\Storage;
ini_set('max_execution_time', 0);
ini_set("memory_limit", "-1");
include_once __DIR__ . "/vendor/autoload.php";
@dvesh3
dvesh3 / pimcore10.6_migrate_o_prefixes_recyclebin.php
Last active January 16, 2024 13:03
Scripts for re-saving versions & recycle-bin items for the purpose of migrating o_ prefix properties on Pimcore 10.6
<?php
// file should be located in project root
use Pimcore\Tool\Serialize;
use Pimcore\Tool\Storage;
ini_set('max_execution_time', 0);
ini_set("memory_limit", "-1");
include_once __DIR__ . "/vendor/autoload.php";
@dvesh3
dvesh3 / CustomerAttributesTrait.php
Last active March 2, 2022 10:34
Trait for Customer class required Getters/Setters
<?php
namespace App\Model\CustomerManagementFramework;
trait CustomerAttributesTrait
{
protected ?bool $active;
protected ?string $gender;
protected ?string $firstname;
protected ?string $lastname;