/** @var Blog $blog */
$blog =
$this->
getRepository()->
find($blogArticleId);
/** @var Shop $shop */
$shop =
$this->
getModelManager()->
getReference(Shop::
class,
$this->
get('shop'
)->
getId());
$blogCommentModel->
setBlog($blog);
$blogCommentModel->
setCreationDate(new DateTime());
$blogCommentModel->
setActive(false
);
$blogCommentModel->
setName($commentData['name'
]);
$blogCommentModel->
setEmail($commentData['eMail'
]);
$blogCommentModel->
setHeadline($commentData['headline'
]);
$blogCommentModel->
setComment($commentData['comment'
]);
$blogCommentModel->
setPoints($commentData['points'
]);
$blogCommentModel->
setShop($shop);
$this->
get('models'
)->
persist($blogCommentModel);
$this->
get('models'
)->
flush();
} /**
* Returns all data needed to display the pager
*
* @param int $totalResult
* @param int $limitEnd
* @param int $page
* @param int $categoryId
*
* @return array
*/