Announcement

Collapse
No announcement yet.

Extend-ability and updates proofing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


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

      Thank you for the quick response

      Comment

      Working...
      X