From a816ec59fc5c528937a0185a37f030295a7f85ce Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 15 Jan 2017 18:03:13 +0300 Subject: [PATCH] Probably Post DTO temprorary fix. --- src/Skobkin/Bundle/PointToolsBundle/DTO/Api/Post.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/DTO/Api/Post.php b/src/Skobkin/Bundle/PointToolsBundle/DTO/Api/Post.php index 76bc035..fb335d2 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/DTO/Api/Post.php +++ b/src/Skobkin/Bundle/PointToolsBundle/DTO/Api/Post.php @@ -146,8 +146,9 @@ class Post implements ValidableInterface null !== $this->author && $this->author->isValid() && null !== $this->text && - null !== $this->created && - null !== $this->type + null !== $this->created// && + // @todo check type existence in incoming data + //null !== $this->type ) { return true; }