Skip to content

Creating instance of entity class is not recommended.

With introduction of #799 (closed) entity object should be created using

$entityObj = CRMEntity::getInstance(EntityClass);

instead of

$entityObj = new EntityClass();

CRMEntity::getInstance prepares the entityObj with required initialization of additional properties.