for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (c) shopware AG <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Shopware\CustomModels\Connect;
use Shopware\Components\Model\ModelRepository;
* Class RemoteCategoryRepository
* @package Shopware\CustomModels\Connect
class RemoteCategoryRepository extends ModelRepository
{
public function deleteById($remoteCategoryId)
$builder = $this->createQueryBuilder('rc');
$builder->delete('Shopware\CustomModels\Connect\RemoteCategory', 'rc');
$builder->where('rc.id = :rcid');
$builder->setParameter(':rcid', $remoteCategoryId);
$builder->getQuery()->execute();
}