Documentation

No matching pages.

API

Config

Facade

Lifecycle

Class: Node

Full name: Azera\Orm\Node

A single entity's bookkeeping entry in the Heap.

Mirrors Cycle's Node concept, trimmed to what the EntityManager's write pipeline needs: the entity reference, its identity (PK values), a data snapshot for dirty diffing, and the persistence lifecycle state.

The data array holds SCALAR row values only (the raw store representation) — not PHP objects. Objects would break both the diff and the L2 cache story.

Public Constants

  • NEW = 1
  • MANAGED = 2
  • SCHEDULED_INSERT = 3
  • SCHEDULED_UPDATE = 4
  • SCHEDULED_DELETE = 5
  • DELETED = 6
  • SCHEDULED_UPSERT = 7

Public Properties

  • public readonly string $class ·
  • public readonly array $id ·
  • public array $data ·
  • public int $state ·
  • public array $changedFields ·
  • public ConflictTarget|null $conflict ·
  • public array|null $upsertColumns ·

Public methods

__construct() ·

public function __construct(string $class, array $id, array $data, int $state = 1, array $changedFields = [], Azera\Orm\ConflictTarget|null $conflict = null, array|null $upsertColumns = null): mixed

Parameters

Name Type Default Description
$class string -
$id array -
$data array -
$state int 1
$changedFields array []
$conflict ConflictTarget|null null
$upsertColumns array|null null

Return value

  • Type: mixed

isScheduled() ·

public function isScheduled(): bool

Return value

  • Type: bool

Back to the Index