Extend-ability and updates proofing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChrisChristou
    Junior Member
    • May 2017
    • 13

    Extend-ability and updates proofing

    Does the SelectManager folder overwritten on updates or is it safe to edit classes there ?
    Code:
     [B]namespace Espo\Modules\Crm\SelectManagers;[/B]
    Is there a way to extend those classes in custom folder like creating this
    Code:
    [B]custom/Espo/Custom/SelectManagers[/B]
    folder and extending there?
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    It is not safe to modify files in Espo\Modules\Crm\SelectManagers\

    You can create a SelectManager for a certain entity in custom namespace (custom/Espo/Custom/SelectManagers/{Entity},php). Inherit it from Espo\Modules\SelectManagers\{Entity} or from Core class if previous doesn't exist. This will an upgrade safe way.
    use namespace Espo\Custom\SelectManagers

    Comment

    • ChrisChristou
      Junior Member
      • May 2017
      • 13

      #3
      ok ill try to create a custom filter and see what happens

      Thank you for the quick response

      Comment

      Working...