public __construct ( |
||
$iterator | An entity properties iterator |
public function __construct(EntityPropertiesIterator $iterator)
{
parent::__construct($iterator);
$this->position = 0;
$pk = $iterator->getEntity()->getPrimaryKey();
$this->new = !$iterator->getEntity()->getActual()->{$pk};
}