diff --git a/Classes/Domain/Model/Insert.php b/Classes/Domain/Model/Insert.php index d14443f..723292e 100644 --- a/Classes/Domain/Model/Insert.php +++ b/Classes/Domain/Model/Insert.php @@ -7,9 +7,10 @@ use Neos\Flow\Annotations as Flow; /** * SequenceInsert * - * @author fcool * @Flow\Entity - * @ORM\Table(indexes={@ORM\Index(name="type_idx", columns={"type"})}) + * @ORM\Table(indexes={ + * @ORM\Index(name="type_idx", columns={"type"}) + * }) */ class Insert { diff --git a/Classes/Service/SequenceGenerator.php b/Classes/Service/SequenceGenerator.php index 34e6c90..3dfb70e 100644 --- a/Classes/Service/SequenceGenerator.php +++ b/Classes/Service/SequenceGenerator.php @@ -77,9 +77,7 @@ class SequenceGenerator } catch (\PDOException $e) { return false; } catch (DBALException $e) { - if ($e->getPrevious() && $e->getPrevious() instanceof \PDOException) { - // Do nothing, new Doctrine handling hides the above error - } else { + if (! $e->getPrevious() instanceof \PDOException) { $this->systemLogger->logException($e); } } catch (\Exception $e) { diff --git a/Migrations/Mysql/Version20140505093853.php b/Migrations/Mysql/Version20140505093853.php index 88c4dfe..4f4f5e7 100644 --- a/Migrations/Mysql/Version20140505093853.php +++ b/Migrations/Mysql/Version20140505093853.php @@ -1,18 +1,25 @@ getNextNumberFor($sequenceGenerator); } - //making a hard exit to avoid phpunit having the tables cleaned up again + // making a hard exit to avoid phpunit having the tables cleaned up again exit; } }