private function createActionInternal(\stdClass $postParams) {
        $entity = $this->generateEntity();
        $this->saveEntity($postParams, $entity, true);
        // since our entity can be manipulated after saving, we need to find it again, just in case.
        /** @var ModelInterface $newEntity */
        $newEntity = $entity->findFirst($entity->getId());
        //Fix if there are two entities created (with bulk insert), and the first fails, but the second succeeds, the second with get the first's errors
        $reflectionClass = new \ReflectionClass($newEntity);
        $reflectionProperty = $reflectionClass->getProperty('_errorMessages');
        $reflectionProperty->setAccessible(true);
        $reflectionProperty->setValue($newEntity, []);
        return $newEntity;
    }