Hi,
is the a way to override a method in /Espo/Modules/Voip/Core/Helpers/Voip.php ?
i'm trying to override the method findEntitiesByPhone because it makes a query that can't use index ... ( it search for '%phoneNumber' )
Below the process i've done ...
/Espo/Modules/xxx/Resources/metadata/app/loaders.json
/Espo/Modules/xxx/Voip/Loaders/VoipHelper.php
/Espo/Modules/xxx/Voip/VoipHelper.php
1)Created the configuration file
/Espo/Modules/xxx/Resources/metadata/app/loaders.json
2)Override the loader class
/Espo/Modules/xxx/Voip/Loaders/VoipHelper.php
3)Override the method findEntitiesByPhone
/Espo/Modules/xxx/Voip/VoipHelper.php
Still not working ... what i'm doing wrong ?
is the a way to override a method in /Espo/Modules/Voip/Core/Helpers/Voip.php ?
i'm trying to override the method findEntitiesByPhone because it makes a query that can't use index ... ( it search for '%phoneNumber' )
Below the process i've done ...
/Espo/Modules/xxx/Resources/metadata/app/loaders.json
/Espo/Modules/xxx/Voip/Loaders/VoipHelper.php
/Espo/Modules/xxx/Voip/VoipHelper.php
1)Created the configuration file
/Espo/Modules/xxx/Resources/metadata/app/loaders.json
Code:
{ "VoipHelper": "\\Espo\\Modules\\xxx\\Voip\\Loaders\\VoipHelper" }
2)Override the loader class
/Espo/Modules/xxx/Voip/Loaders/VoipHelper.php
PHP Code:
namespace Espo\Modules\xxx\Voip\Loaders;
class VoipHelper extends \Espo\Modules\Voip\Loaders\VoipHelper
{
public function load()
{
return new \Espo\Modules\xxx\Voip\VoipHelper;
}
}
3)Override the method findEntitiesByPhone
/Espo/Modules/xxx/Voip/VoipHelper.php
PHP Code:
namespace Espo\Modules\xxx\Voip;
class VoipHelper extends \Espo\Modules\Voip\Core\Helpers\Voip
{
/////
}
Still not working ... what i'm doing wrong ?
Comment