Issues (219)

Entity/Job.php (1 issue)

1
<?php
2
3
namespace Dtc\QueueBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
The type Doctrine\ORM\Mapping was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
/**
8
 * Note: the number of indexes was purposefully kept smaller than it could be (such as adding an expires index)
9
 *   This was done to keep the number of indexes reasonably minimal for insert performance considerations.
10
 */
11
#[ORM\Entity]
12
#[ORM\Table(name: 'dtc_queue_job')]
13
#[ORM\Index(columns: ['crc_hash', 'status'], name: 'job_crc_hash_idx')]
14
#[ORM\Index(columns: ['priority', 'when_us'], name: 'job_priority_idx')]
15
#[ORM\Index(columns: ['when_us'], name: 'job_when_idx')]
16
#[ORM\Index(columns: ['status', 'when_us'], name: 'job_status_idx')]
17
class Job extends BaseJob
18
{
19
    public const STATUS_ARCHIVE = 'archive';
20
    #[ORM\Column(name: 'id', type: 'bigint')]
21
    #[ORM\Id]
22
    #[ORM\GeneratedValue(strategy: 'AUTO')]
23
    protected $id;
24
}
25