CodeExplorer isPostInsertGenerator example
/**
* {@inheritDoc}
*/
public function executeInserts() { if (!
$this->queuedInserts
) { return [];
} $postInsertIds =
[];
$idGenerator =
$this->class->idGenerator;
$isPostInsertId =
$idGenerator->
isPostInsertGenerator();
$stmt =
$this->conn->
prepare($this->
getInsertSQL());
$tableName =
$this->class->
getTableName();
foreach ($this->queuedInserts
as $entity) { $insertData =
$this->
prepareInsertData($entity);
if (isset($insertData[$tableName])) { $paramIndex = 1;
foreach ($insertData[$tableName] as $column =>
$value) {