Query::buildRelationClauses()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 2 Features 1
Metric Value
c 2
b 2
f 1
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the "RocketORM" package.
5
 *
6
 * https://github.com/RocketORM/ORM
7
 *
8
 * For the full license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Rocket\ORM\Model\Query\SQLite;
13
14
use Rocket\ORM\Model\Query\Query as BaseQuery;
15
16
/**
17
 * @author Sylvain Lorinet <[email protected]>
18
 */
19
abstract class Query extends BaseQuery
20
{
21
    /**
22
     * @inheritdoc
23
     */
24 2
    protected function buildRelationClauses()
25
    {
26
        // Remove the database name
27
28 2
        return preg_replace('/`([a-zA-Z0-9_-]+)`\./', '', parent::buildRelationClauses());
29
    }
30
}
31