Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dominik
    @dpfaffenbauer
    use twig extensions
    Schorsch
    @kathangeorg
    @dpfaffenbauer thx, works like a charm.
    Trịnh Tùng Anh
    @starfruitjsc_gitlab

    @msphn

    @starfruitjsc_gitlab I did

    Hi Misha, yes i read the post about streamwrapper and do the same but i got the error; seem like Azure Blob is not allowed to create folder... What did you do to overcome that ?

    Ruben Jansen
    @rubanooo_gitlab
    Hello, how do I translate select options?
    rpicheta
    @rpicheta
    @rubanooo_gitlab Create data provider and in class use translator. Then in admin in class in option "Options Provider Class or Service Name:" pass namespace to your data provider
    Of course you need to choose correct field type for it :)
    Ruben Jansen
    @rubanooo_gitlab
    Which translator class do I use? I use Symfony\Contracts\Translation\TranslatorInterface but I dont see the translations showing up anywhere
    35 replies
    Dennis Pfahlbusch
    @dpfahlbusch_gitlab
    hey @all, what could be the problem that pimcore generates empty document-image-thumbnails?
    lukasvitroleracc
    @lukasvitroleracc
    I am using Doctrine ORM with pimcore and created my own entities. Finding them, creating them, updating works all fine when I am on debug mode but when I switch debug mode off I dont get the newest version of the entity when I updated some value on it
    Dominik
    @dpfaffenbauer
    do you have coreshop installed?
    lukasvitroleracc
    @lukasvitroleracc
    no :(
    Dominik
    @dpfaffenbauer
    ok, cause coreshop integrates the doctrine cache with the pimcore cache
    and that could have been your issue
    lukasvitroleracc
    @lukasvitroleracc
    ok
    Dominik
    @dpfaffenbauer
    maybe per default doctrine-bundle uses a file storage cache and that is quite outdated
    lukasvitroleracc
    @lukasvitroleracc
    do you know how I could invalidate the cache?
    I tried with setting a cacheid and deleting it
    lukasvitroleracc
    @lukasvitroleracc
    It was the full page cache ;_;
    Dominik
    @dpfaffenbauer
    :D
    Alexander Scheider
    @A_Scheider_twitter
    Hey folks, how can i access container from the tests?
    My test extends from Pimcore\Test\KernelTestCase but self::$container is NULL
    rpicheta
    @rpicheta
    Hey, what kind of tests?
    Are you using codeception?
    Alexander Scheider
    @A_Scheider_twitter
    my bootstrap file like in the example is included
    Now we're ready to write tests which depend on a bootstrapped environment. Symfony already provides KernelTestCase and WebTestCase as base classes for tests involving the container, but Pimcore expects the container to be set via Pimcore::setContainer() after bootstrapping. This is automatically done for you if you use Pimcore\Test\KernelTestCase and Pimcore\Test\WebTestCase as base classes, otherwise you need to make sure to overwrite createKernel and set the container on the Pimcore class.
    Dominik
    @dpfaffenbauer
    when you extend from KernelTestCase you should be able to access self::$kernel->getContainer
    if not, you could use Pimcore::getContainer
    Alexander Scheider
    @A_Scheider_twitter
    Strange. Self::$kernel is null and if i call Pimcore::getContainer i get Call to a member function getContainer() on null
    my tests are placed in bundle
    rpicheta
    @rpicheta
    Got the same issue sometime ago
    In your bootstrap.php add this
    \Pimcore\Bootstrap::setProjectRoot();
    \Pimcore\Bootstrap::boostrap();
    \Pimcore\Bootstrap::kernel();
    after vendor/autoload.php
    also in section where you add env variables add this
    putenv('PIMCORE_ENVIRONMENT=test');
    putenv('KERNEL_DIR=app');
    putenv('KERNEL_CLASS=AppKernel');
    it's all about kernel :)
    Alexander Scheider
    @A_Scheider_twitter
    no, still does not work
    rpicheta
    @rpicheta
    Maybe this :
    #boostrap.php
    <?php
    $_SERVER['KERNEL_CLASS'] = 'AppKernel';
    (Sorry, I'm using codeception, that's why I'm guessing :) )
    Alexander Scheider
    @A_Scheider_twitter
    @rpicheta no problem. no this did not helped
    image.png
    Alexander Scheider
    @A_Scheider_twitter
    Boot helped here, so i can access \Pimcore::getContainer() in my test
    rpicheta
    @rpicheta
    Soo, problem solved?
    Alexander Scheider
    @A_Scheider_twitter
    @rpicheta i guess yes. thanks for the help
    rpicheta
    @rpicheta
    np np ;)
    Himakar
    @Himakar-PV
    Hi, I am new to Pimcore, I installed CMF and trying to create Customer object using web service API (/webserivce/cmf/customers). I get response success but the data is empty, i.e., no data saved in the object but object is created. How can I register customer using web services?
    Himakar
    @Himakar-PV
    This is the sample data:
    {
        "className": "Customer",
        "parentId": 12417,
        "key": "new customer",
        "published":true,
        "elements": [
            {
                "type":"firstname",
                "name": "firstname",
                "value":"Himakar"
    
            },
            {
                "type":"lastname",
                "name": "lastname",
                "value":"PV"
            }
        ],
        "notes":[
            {
                "type":"warning",
                "data":[]
            }
        ]
    }
    Amal David
    @DavidAmal_twitter
    I'm trying to write a custom webservice using the PHP API to import images but I don't seem to find any documentation on how to write routes and map it with controllers. Any pointers on how to achieve this?
    Amal David
    @DavidAmal_twitter
    My usecase is I'm trying to write an ETL Job which uploads 1000+ images into pimcore with their custom_id as the folder name. I initially planned to use the REST API to achieve this but seems like it's not a good fit for this purpose so looking at PHP API now but my limited knowledge on PHP isn't helping much, any suggestions on what would be the best approach to achieve this?