Upgrade 6.10 to v7 SelectManagers & recordDefs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1476

    Upgrade 6.10 to v7 SelectManagers & recordDefs

    Hello Yuri,

    some result on upgrade process :
    Error: InjectableFactory: Class 'Espo\Core\Utils\Config\ConfigWriter' does not exist.
    Syntax error in custom/Espo/Custom/Resources/metadata/recordDefs/Patient.json. => i have deleted and rebegin upgrade process
    appParam templateEntityTypeList: Class 'Espo\Modules\Crm\SelectManagers\Account' not found
    Class 'Espo\Modules\Crm\SelectManagers\Account' not found File: custom/Espo/Custom/SelectManagers/Account.php

    I have begin upgrade process 4 time now it's v7 with 2 strange think :

    I think the upgrade process have bugged in :
    recordDefs
    SelectManagers

    two question :
    - why in recordDefs, i have only 2 custom entity file with duplicateWhereBuilderClassName ? i have maybe 10 custom entity.

    is old custom SelectManagers are still working ? i certainly change some extends ?

    Best Regards
    PHP Code:
    <?php
    
    namespace Espo\Custom\SelectManagers;
    
    class Account extends \Espo\Modules\Crm\SelectManagers\Account
    {
    protected function boolFilterIsMember(&$result)
    {
    $result['whereClause'][] = array(
    'isMember' => true
    );
    }
    protected function boolFilterIsActive(&$result)
    {
    $result['whereClause'][] = array(
    'isActive' => true
    );
    }
    }


    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • yuri
    Member
    • Mar 2014
    • 8451

    #2
    Did you run from CLI?

    > is old custom SelectManagers are still working ? i certainly change some extends ?

    Yes. But all extended classes have been removed. Only Base class left for backward compatiblity.

    If you extended from Espo\Modules\Crm\SelectManagers\Account you need to extend from Base now.

    > why in recordDefs, i have only 2 custom entity file with duplicateWhereBuilderClassName ? i have maybe 10 custom entity.

    Only Company, Person and Event types should have recordDefs created.
    Last edited by yuri; 10-01-2021, 06:28 PM.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • item
      Active Community Member
      • Mar 2017
      • 1476

      #3
      Hello Yuri,

      Thanks.. for reponse.
      Yes update from cli .. of course

      i have still one error :
      in EspoUploadDir.php
      throw new Error("Could not get stream for non-existing '{$filePath}'.");

      And i know, i my development environment, i have no " uploaded files" ..i don't know why on account list view, i receive the error.. and not on other entity. Strange.. i will look more

      Best Regards


      If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

      Comment

      • AgentT
        Member
        • Aug 2021
        • 77

        #4
        Hey item did you fix the issue with "Could not get stream for non-existing"? I have similar error now.

        Comment


        • item
          item commented
          Editing a comment
          Hello AgentT,
          sorry, i have prefered to rewrite all code.. because v5 -> v6->v7 is a big challenge.
          maybe check in config file : 'defaultFileStorage' => 'EspoUploadDir',
      Working...