EntityRepository
- Full name:
\Codefy\Domain\Model\EntityRepository
Methods
findEntityById
Find an Entity by its id.
Parameters:
Parameter | Type | Description |
---|---|---|
$entityId | \Codefy\Domain\Model\EntityId | Entity id. |
Return Value:
Returns Entity object if existed, null otherwise.
Throws:
The ID of this entity is invalid.
saveEntity
Save an Entity.
Parameters:
Parameter | Type | Description |
---|---|---|
$entity | \Codefy\Domain\Model\Entity |
Return Value:
If saved successfully, return EntityId, null otherwise.
Automatically generated on 2025-10-13