public function create(Entity $entity): void
    {
        $id = spl_object_id($entity);

        $this->createModels[$id] = $entity;
    }
public function create(Entity $entity): void
    {
        $id = spl_object_id($entity);

        $this->createModels[$id] = $entity;
    }
public function create ( Entity $ entity ) : void { $ id = spl_object_id ( $ entity ) ; $ this -> createModels [ $ id ] = $ entity ; }
Set a model for creation on transaction commit.

@param \Valkyrja\ORM\Entity $entity

@return void
Set a model for creation on transaction commit .