Skip to main content
Version: 2.0

Add Entity To Rule Engine

To add an entity to the rule engine you need to add the repository.

use Parthenon\Athena\Repository\DoctrineCrudRepository;
use Parthenon\RuleEngine\Repository\RuleEngineRepositoryInterface;

class DemoRequestRepostiory extends DoctrineCrudRepository implements RuleEntityRepository
{
public public function getEntity()
{
return new DemoRequest();
}
}

Then you'll see DemoRequest in the list for the Rule Engine