Completed
Push — development ( eb9524...db4517 )
by Andrij
28:49 queued 02:09
created

BannersQuery::filterByHeight()   B

Complexity

Conditions 6
Paths 13

Size

Total Lines 22
Code Lines 14

Duplication

Lines 22
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 22
loc 22
rs 8.6737
cc 6
eloc 14
nc 13
nop 2
1
<?php
2
3
namespace xbanners\models\Base;
4
5
use \Exception;
6
use \PDO;
7
use Propel\Runtime\Propel;
8
use Propel\Runtime\ActiveQuery\Criteria;
9
use Propel\Runtime\ActiveQuery\ModelCriteria;
10
use Propel\Runtime\ActiveQuery\ModelJoin;
11
use Propel\Runtime\Collection\ObjectCollection;
12
use Propel\Runtime\Connection\ConnectionInterface;
13
use Propel\Runtime\Exception\PropelException;
14
use xbanners\models\Banners as ChildBanners;
15
use xbanners\models\BannersI18nQuery as ChildBannersI18nQuery;
16
use xbanners\models\BannersQuery as ChildBannersQuery;
17
use xbanners\models\Map\BannerImageTableMap;
18
use xbanners\models\Map\BannersI18nTableMap;
19
use xbanners\models\Map\BannersTableMap;
20
21
/**
22
 * Base class that represents a query for the 'banners' table.
23
 *
24
 *
25
 *
26
 * @method     ChildBannersQuery orderById($order = Criteria::ASC) Order by the id column
27
 * @method     ChildBannersQuery orderByPlace($order = Criteria::ASC) Order by the place column
28
 * @method     ChildBannersQuery orderByWidth($order = Criteria::ASC) Order by the width column
29
 * @method     ChildBannersQuery orderByHeight($order = Criteria::ASC) Order by the height column
30
 * @method     ChildBannersQuery orderByEffects($order = Criteria::ASC) Order by the effects column
31
 * @method     ChildBannersQuery orderByPageType($order = Criteria::ASC) Order by the page_type column
32
 *
33
 * @method     ChildBannersQuery groupById() Group by the id column
34
 * @method     ChildBannersQuery groupByPlace() Group by the place column
35
 * @method     ChildBannersQuery groupByWidth() Group by the width column
36
 * @method     ChildBannersQuery groupByHeight() Group by the height column
37
 * @method     ChildBannersQuery groupByEffects() Group by the effects column
38
 * @method     ChildBannersQuery groupByPageType() Group by the page_type column
39
 *
40
 * @method     ChildBannersQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
41
 * @method     ChildBannersQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
42
 * @method     ChildBannersQuery innerJoin($relation) Adds a INNER JOIN clause to the query
43
 *
44
 * @method     ChildBannersQuery leftJoinWith($relation) Adds a LEFT JOIN clause and with to the query
45
 * @method     ChildBannersQuery rightJoinWith($relation) Adds a RIGHT JOIN clause and with to the query
46
 * @method     ChildBannersQuery innerJoinWith($relation) Adds a INNER JOIN clause and with to the query
47
 *
48
 * @method     ChildBannersQuery leftJoinBannerImage($relationAlias = null) Adds a LEFT JOIN clause to the query using the BannerImage relation
49
 * @method     ChildBannersQuery rightJoinBannerImage($relationAlias = null) Adds a RIGHT JOIN clause to the query using the BannerImage relation
50
 * @method     ChildBannersQuery innerJoinBannerImage($relationAlias = null) Adds a INNER JOIN clause to the query using the BannerImage relation
51
 *
52
 * @method     ChildBannersQuery joinWithBannerImage($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the BannerImage relation
53
 *
54
 * @method     ChildBannersQuery leftJoinWithBannerImage() Adds a LEFT JOIN clause and with to the query using the BannerImage relation
55
 * @method     ChildBannersQuery rightJoinWithBannerImage() Adds a RIGHT JOIN clause and with to the query using the BannerImage relation
56
 * @method     ChildBannersQuery innerJoinWithBannerImage() Adds a INNER JOIN clause and with to the query using the BannerImage relation
57
 *
58
 * @method     ChildBannersQuery leftJoinBannersI18n($relationAlias = null) Adds a LEFT JOIN clause to the query using the BannersI18n relation
59
 * @method     ChildBannersQuery rightJoinBannersI18n($relationAlias = null) Adds a RIGHT JOIN clause to the query using the BannersI18n relation
60
 * @method     ChildBannersQuery innerJoinBannersI18n($relationAlias = null) Adds a INNER JOIN clause to the query using the BannersI18n relation
61
 *
62
 * @method     ChildBannersQuery joinWithBannersI18n($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the BannersI18n relation
63
 *
64
 * @method     ChildBannersQuery leftJoinWithBannersI18n() Adds a LEFT JOIN clause and with to the query using the BannersI18n relation
65
 * @method     ChildBannersQuery rightJoinWithBannersI18n() Adds a RIGHT JOIN clause and with to the query using the BannersI18n relation
66
 * @method     ChildBannersQuery innerJoinWithBannersI18n() Adds a INNER JOIN clause and with to the query using the BannersI18n relation
67
 *
68
 * @method     \xbanners\models\BannerImageQuery|\xbanners\models\BannersI18nQuery endUse() Finalizes a secondary criteria and merges it with its primary Criteria
69
 *
70
 * @method     ChildBanners findOne(ConnectionInterface $con = null) Return the first ChildBanners matching the query
71
 * @method     ChildBanners findOneOrCreate(ConnectionInterface $con = null) Return the first ChildBanners matching the query, or a new ChildBanners object populated from the query conditions when no match is found
72
 *
73
 * @method     ChildBanners findOneById(int $id) Return the first ChildBanners filtered by the id column
74
 * @method     ChildBanners findOneByPlace(string $place) Return the first ChildBanners filtered by the place column
75
 * @method     ChildBanners findOneByWidth(int $width) Return the first ChildBanners filtered by the width column
76
 * @method     ChildBanners findOneByHeight(int $height) Return the first ChildBanners filtered by the height column
77
 * @method     ChildBanners findOneByEffects(string $effects) Return the first ChildBanners filtered by the effects column
78
 * @method     ChildBanners findOneByPageType(string $page_type) Return the first ChildBanners filtered by the page_type column *
79
80
 * @method     ChildBanners requirePk($key, ConnectionInterface $con = null) Return the ChildBanners by primary key and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
81
 * @method     ChildBanners requireOne(ConnectionInterface $con = null) Return the first ChildBanners matching the query and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
82
 *
83
 * @method     ChildBanners requireOneById(int $id) Return the first ChildBanners filtered by the id column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
84
 * @method     ChildBanners requireOneByPlace(string $place) Return the first ChildBanners filtered by the place column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
85
 * @method     ChildBanners requireOneByWidth(int $width) Return the first ChildBanners filtered by the width column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
86
 * @method     ChildBanners requireOneByHeight(int $height) Return the first ChildBanners filtered by the height column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
87
 * @method     ChildBanners requireOneByEffects(string $effects) Return the first ChildBanners filtered by the effects column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
88
 * @method     ChildBanners requireOneByPageType(string $page_type) Return the first ChildBanners filtered by the page_type column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
89
 *
90
 * @method     ChildBanners[]|ObjectCollection find(ConnectionInterface $con = null) Return ChildBanners objects based on current ModelCriteria
91
 * @method     ChildBanners[]|ObjectCollection findById(int $id) Return ChildBanners objects filtered by the id column
92
 * @method     ChildBanners[]|ObjectCollection findByPlace(string $place) Return ChildBanners objects filtered by the place column
93
 * @method     ChildBanners[]|ObjectCollection findByWidth(int $width) Return ChildBanners objects filtered by the width column
94
 * @method     ChildBanners[]|ObjectCollection findByHeight(int $height) Return ChildBanners objects filtered by the height column
95
 * @method     ChildBanners[]|ObjectCollection findByEffects(string $effects) Return ChildBanners objects filtered by the effects column
96
 * @method     ChildBanners[]|ObjectCollection findByPageType(string $page_type) Return ChildBanners objects filtered by the page_type column
97
 * @method     ChildBanners[]|\Propel\Runtime\Util\PropelModelPager paginate($page = 1, $maxPerPage = 10, ConnectionInterface $con = null) Issue a SELECT query based on the current ModelCriteria and uses a page and a maximum number of results per page to compute an offset and a limit
98
 *
99
 */
0 ignored issues
show
introduced by
Additional blank lines found at end of doc comment
Loading history...
100
abstract class BannersQuery extends ModelCriteria
101
{
0 ignored issues
show
introduced by
Opening brace of a class must be on the same line as the definition
Loading history...
102
    protected $entityNotFoundExceptionClass = '\\Propel\\Runtime\\Exception\\EntityNotFoundException';
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line before member var; 0 found
Loading history...
103
104
    /**
105
     * Initializes internal state of \xbanners\models\Base\BannersQuery object.
106
     *
107
     * @param     string $dbName The database name
108
     * @param     string $modelName The phpName of a model, e.g. 'Book'
109
     * @param     string $modelAlias The alias for the model in this query, e.g. 'b'
0 ignored issues
show
Documentation introduced by
Should the type for parameter $modelAlias not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
110
     */
111
    public function __construct($dbName = 'Shop', $modelName = '\\xbanners\\models\\Banners', $modelAlias = null)
112
    {
113
        parent::__construct($dbName, $modelName, $modelAlias);
114
    }
115
116
    /**
117
     * Returns a new ChildBannersQuery object.
118
     *
119
     * @param     string $modelAlias The alias of a model in the query
0 ignored issues
show
Documentation introduced by
Should the type for parameter $modelAlias not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
120
     * @param     Criteria $criteria Optional Criteria to build the query from
0 ignored issues
show
Documentation introduced by
Should the type for parameter $criteria not be null|Criteria?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
121
     *
122
     * @return ChildBannersQuery
123
     */
124 View Code Duplication
    public static function create($modelAlias = null, Criteria $criteria = null)
125
    {
126
        if ($criteria instanceof ChildBannersQuery) {
127
            return $criteria;
128
        }
129
        $query = new ChildBannersQuery();
130
        if (null !== $modelAlias) {
131
            $query->setModelAlias($modelAlias);
132
        }
133
        if ($criteria instanceof Criteria) {
134
            $query->mergeWith($criteria);
135
        }
136
137
        return $query;
138
    }
139
140
    /**
141
     * Find object by primary key.
142
     * Propel uses the instance pool to skip the database if the object exists.
143
     * Go fast if the query is untouched.
144
     *
145
     * <code>
0 ignored issues
show
introduced by
Doc comment long description must start with a capital letter
Loading history...
146
     * $obj  = $c->findPk(12, $con);
147
     * </code>
148
     *
149
     * @param mixed $key Primary key to use for the query
150
     * @param ConnectionInterface $con an optional connection object
0 ignored issues
show
Documentation introduced by
Should the type for parameter $con not be null|ConnectionInterface?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
151
     *
152
     * @return ChildBanners|array|mixed the result, formatted by the current formatter
153
     */
154 View Code Duplication
    public function findPk($key, ConnectionInterface $con = null)
155
    {
156
        if ($key === null) {
157
            return null;
158
        }
159
        if ((null !== ($obj = BannersTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key))) && !$this->formatter) {
160
            // the object is already in the instance pool
161
            return $obj;
162
        }
163
        if ($con === null) {
164
            $con = Propel::getServiceContainer()->getReadConnection(BannersTableMap::DATABASE_NAME);
165
        }
166
        $this->basePreSelect($con);
167
        if ($this->formatter || $this->modelAlias || $this->with || $this->select
168
         || $this->selectColumns || $this->asColumns || $this->selectModifiers
0 ignored issues
show
Coding Style introduced by
Multi-line IF statement not indented correctly; expected 12 spaces but found 9
Loading history...
169
         || $this->map || $this->having || $this->joins) {
0 ignored issues
show
Coding Style introduced by
Multi-line IF statement not indented correctly; expected 12 spaces but found 9
Loading history...
Coding Style introduced by
Closing parenthesis of a multi-line IF statement must be on a new line
Loading history...
170
            return $this->findPkComplex($key, $con);
171
        } else {
172
            return $this->findPkSimple($key, $con);
173
        }
174
    }
175
176
    /**
177
     * Find object by primary key using raw SQL to go fast.
178
     * Bypass doSelect() and the object formatter by using generated code.
179
     *
180
     * @param     mixed $key Primary key to use for the query
181
     * @param     ConnectionInterface $con A connection object
182
     *
183
     * @throws \Propel\Runtime\Exception\PropelException
0 ignored issues
show
introduced by
Comment missing or not on the next line for @throws tag in function comment
Loading history...
184
     *
185
     * @return ChildBanners A model object, or null if the key is not found
0 ignored issues
show
Documentation introduced by
Should the return type not be ChildBanners|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
186
     */
187 View Code Duplication
    protected function findPkSimple($key, ConnectionInterface $con)
188
    {
189
        $sql = 'SELECT id, place, width, height, effects, page_type FROM banners WHERE id = :p0';
190
        try {
191
            $stmt = $con->prepare($sql);
192
            $stmt->bindValue(':p0', $key, PDO::PARAM_INT);
193
            $stmt->execute();
194
        } catch (Exception $e) {
195
            Propel::log($e->getMessage(), Propel::LOG_ERR);
196
            throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e);
197
        }
198
        $obj = null;
199
        if ($row = $stmt->fetch(\PDO::FETCH_NUM)) {
200
            /** @var ChildBanners $obj */
201
            $obj = new ChildBanners();
202
            $obj->hydrate($row);
203
            BannersTableMap::addInstanceToPool($obj, null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key);
204
        }
205
        $stmt->closeCursor();
206
207
        return $obj;
208
    }
209
210
    /**
211
     * Find object by primary key.
212
     *
213
     * @param     mixed $key Primary key to use for the query
214
     * @param     ConnectionInterface $con A connection object
215
     *
216
     * @return ChildBanners|array|mixed the result, formatted by the current formatter
217
     */
218 View Code Duplication
    protected function findPkComplex($key, ConnectionInterface $con)
219
    {
220
        // As the query uses a PK condition, no limit(1) is necessary.
221
        $criteria = $this->isKeepQuery() ? clone $this : $this;
222
        $dataFetcher = $criteria
223
            ->filterByPrimaryKey($key)
224
            ->doSelect($con);
225
226
        return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher);
227
    }
228
229
    /**
230
     * Find objects by primary key
231
     * <code>
232
     * $objs = $c->findPks(array(12, 56, 832), $con);
233
     * </code>
234
     * @param     array $keys Primary keys to use for the query
235
     * @param     ConnectionInterface $con an optional connection object
0 ignored issues
show
Documentation introduced by
Should the type for parameter $con not be null|ConnectionInterface?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
236
     *
237
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
238
     */
239 View Code Duplication
    public function findPks($keys, ConnectionInterface $con = null)
240
    {
241
        if (null === $con) {
242
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
243
        }
244
        $this->basePreSelect($con);
245
        $criteria = $this->isKeepQuery() ? clone $this : $this;
246
        $dataFetcher = $criteria
247
            ->filterByPrimaryKeys($keys)
248
            ->doSelect($con);
249
250
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
251
    }
252
253
    /**
254
     * Filter the query by primary key
255
     *
256
     * @param     mixed $key Primary key to use for the query
257
     *
258
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
259
     */
260
    public function filterByPrimaryKey($key)
261
    {
262
263
        return $this->addUsingAlias(BannersTableMap::COL_ID, $key, Criteria::EQUAL);
264
    }
265
266
    /**
267
     * Filter the query by a list of primary keys
268
     *
269
     * @param     array $keys The list of primary key to use for the query
270
     *
271
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
272
     */
273
    public function filterByPrimaryKeys($keys)
274
    {
275
276
        return $this->addUsingAlias(BannersTableMap::COL_ID, $keys, Criteria::IN);
277
    }
278
279
    /**
280
     * Filter the query on the id column
281
     *
282
     * Example usage:
283
     * <code>
284
     * $query->filterById(1234); // WHERE id = 1234
285
     * $query->filterById(array(12, 34)); // WHERE id IN (12, 34)
286
     * $query->filterById(array('min' => 12)); // WHERE id > 12
287
     * </code>
288
     *
289
     * @param     mixed $id The value to use as filter.
290
     *              Use scalar values for equality.
291
     *              Use array values for in_array() equivalent.
292
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
293
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
0 ignored issues
show
Documentation introduced by
Should the type for parameter $comparison not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
294
     *
295
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
296
     */
297 View Code Duplication
    public function filterById($id = null, $comparison = null)
298
    {
299
        if (is_array($id)) {
300
            $useMinMax = false;
301
            if (isset($id['min'])) {
302
                $this->addUsingAlias(BannersTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);
303
                $useMinMax = true;
304
            }
305
            if (isset($id['max'])) {
306
                $this->addUsingAlias(BannersTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);
307
                $useMinMax = true;
308
            }
309
            if ($useMinMax) {
310
                return $this;
311
            }
312
            if (null === $comparison) {
313
                $comparison = Criteria::IN;
314
            }
315
        }
316
317
        return $this->addUsingAlias(BannersTableMap::COL_ID, $id, $comparison);
318
    }
319
320
    /**
321
     * Filter the query on the place column
322
     *
323
     * Example usage:
324
     * <code>
325
     * $query->filterByPlace('fooValue');   // WHERE place = 'fooValue'
326
     * $query->filterByPlace('%fooValue%'); // WHERE place LIKE '%fooValue%'
327
     * </code>
328
     *
329
     * @param     string $place The value to use as filter.
0 ignored issues
show
Documentation introduced by
Should the type for parameter $place not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
330
     *              Accepts wildcards (* and % trigger a LIKE)
0 ignored issues
show
introduced by
Parameter comment must end with a full stop
Loading history...
331
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
0 ignored issues
show
Documentation introduced by
Should the type for parameter $comparison not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
332
     *
333
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
334
     */
335 View Code Duplication
    public function filterByPlace($place = null, $comparison = null)
336
    {
337
        if (null === $comparison) {
338
            if (is_array($place)) {
339
                $comparison = Criteria::IN;
340
            } elseif (preg_match('/[\%\*]/', $place)) {
341
                $place = str_replace('*', '%', $place);
342
                $comparison = Criteria::LIKE;
343
            }
344
        }
345
346
        return $this->addUsingAlias(BannersTableMap::COL_PLACE, $place, $comparison);
347
    }
348
349
    /**
350
     * Filter the query on the width column
351
     *
352
     * Example usage:
353
     * <code>
354
     * $query->filterByWidth(1234); // WHERE width = 1234
355
     * $query->filterByWidth(array(12, 34)); // WHERE width IN (12, 34)
356
     * $query->filterByWidth(array('min' => 12)); // WHERE width > 12
357
     * </code>
358
     *
359
     * @param     mixed $width The value to use as filter.
360
     *              Use scalar values for equality.
361
     *              Use array values for in_array() equivalent.
362
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
363
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
0 ignored issues
show
Documentation introduced by
Should the type for parameter $comparison not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
364
     *
365
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
366
     */
367 View Code Duplication
    public function filterByWidth($width = null, $comparison = null)
368
    {
369
        if (is_array($width)) {
370
            $useMinMax = false;
371
            if (isset($width['min'])) {
372
                $this->addUsingAlias(BannersTableMap::COL_WIDTH, $width['min'], Criteria::GREATER_EQUAL);
373
                $useMinMax = true;
374
            }
375
            if (isset($width['max'])) {
376
                $this->addUsingAlias(BannersTableMap::COL_WIDTH, $width['max'], Criteria::LESS_EQUAL);
377
                $useMinMax = true;
378
            }
379
            if ($useMinMax) {
380
                return $this;
381
            }
382
            if (null === $comparison) {
383
                $comparison = Criteria::IN;
384
            }
385
        }
386
387
        return $this->addUsingAlias(BannersTableMap::COL_WIDTH, $width, $comparison);
388
    }
389
390
    /**
391
     * Filter the query on the height column
392
     *
393
     * Example usage:
394
     * <code>
395
     * $query->filterByHeight(1234); // WHERE height = 1234
396
     * $query->filterByHeight(array(12, 34)); // WHERE height IN (12, 34)
397
     * $query->filterByHeight(array('min' => 12)); // WHERE height > 12
398
     * </code>
399
     *
400
     * @param     mixed $height The value to use as filter.
401
     *              Use scalar values for equality.
402
     *              Use array values for in_array() equivalent.
403
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
404
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
0 ignored issues
show
Documentation introduced by
Should the type for parameter $comparison not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
405
     *
406
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
407
     */
408 View Code Duplication
    public function filterByHeight($height = null, $comparison = null)
409
    {
410
        if (is_array($height)) {
411
            $useMinMax = false;
412
            if (isset($height['min'])) {
413
                $this->addUsingAlias(BannersTableMap::COL_HEIGHT, $height['min'], Criteria::GREATER_EQUAL);
414
                $useMinMax = true;
415
            }
416
            if (isset($height['max'])) {
417
                $this->addUsingAlias(BannersTableMap::COL_HEIGHT, $height['max'], Criteria::LESS_EQUAL);
418
                $useMinMax = true;
419
            }
420
            if ($useMinMax) {
421
                return $this;
422
            }
423
            if (null === $comparison) {
424
                $comparison = Criteria::IN;
425
            }
426
        }
427
428
        return $this->addUsingAlias(BannersTableMap::COL_HEIGHT, $height, $comparison);
429
    }
430
431
    /**
432
     * Filter the query on the effects column
433
     *
434
     * Example usage:
435
     * <code>
436
     * $query->filterByEffects('fooValue');   // WHERE effects = 'fooValue'
437
     * $query->filterByEffects('%fooValue%'); // WHERE effects LIKE '%fooValue%'
438
     * </code>
439
     *
440
     * @param     string $effects The value to use as filter.
0 ignored issues
show
Documentation introduced by
Should the type for parameter $effects not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
441
     *              Accepts wildcards (* and % trigger a LIKE)
0 ignored issues
show
introduced by
Parameter comment must end with a full stop
Loading history...
442
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
0 ignored issues
show
Documentation introduced by
Should the type for parameter $comparison not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
443
     *
444
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
445
     */
446 View Code Duplication
    public function filterByEffects($effects = null, $comparison = null)
447
    {
448
        if (null === $comparison) {
449
            if (is_array($effects)) {
450
                $comparison = Criteria::IN;
451
            } elseif (preg_match('/[\%\*]/', $effects)) {
452
                $effects = str_replace('*', '%', $effects);
453
                $comparison = Criteria::LIKE;
454
            }
455
        }
456
457
        return $this->addUsingAlias(BannersTableMap::COL_EFFECTS, $effects, $comparison);
458
    }
459
460
    /**
461
     * Filter the query on the page_type column
462
     *
463
     * Example usage:
464
     * <code>
465
     * $query->filterByPageType('fooValue');   // WHERE page_type = 'fooValue'
466
     * $query->filterByPageType('%fooValue%'); // WHERE page_type LIKE '%fooValue%'
467
     * </code>
468
     *
469
     * @param     string $pageType The value to use as filter.
0 ignored issues
show
Documentation introduced by
Should the type for parameter $pageType not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
470
     *              Accepts wildcards (* and % trigger a LIKE)
0 ignored issues
show
introduced by
Parameter comment must end with a full stop
Loading history...
471
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
0 ignored issues
show
Documentation introduced by
Should the type for parameter $comparison not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
472
     *
473
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
474
     */
475 View Code Duplication
    public function filterByPageType($pageType = null, $comparison = null)
476
    {
477
        if (null === $comparison) {
478
            if (is_array($pageType)) {
479
                $comparison = Criteria::IN;
480
            } elseif (preg_match('/[\%\*]/', $pageType)) {
481
                $pageType = str_replace('*', '%', $pageType);
482
                $comparison = Criteria::LIKE;
483
            }
484
        }
485
486
        return $this->addUsingAlias(BannersTableMap::COL_PAGE_TYPE, $pageType, $comparison);
487
    }
488
489
    /**
490
     * Filter the query by a related \xbanners\models\BannerImage object
491
     *
492
     * @param \xbanners\models\BannerImage|ObjectCollection $bannerImage the related object to use as filter
493
     * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
0 ignored issues
show
Documentation introduced by
Should the type for parameter $comparison not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
494
     *
495
     * @return ChildBannersQuery The current query, for fluid interface
496
     */
497 View Code Duplication
    public function filterByBannerImage($bannerImage, $comparison = null)
498
    {
499
        if ($bannerImage instanceof \xbanners\models\BannerImage) {
500
            return $this
501
                ->addUsingAlias(BannersTableMap::COL_ID, $bannerImage->getBannerId(), $comparison);
502
        } elseif ($bannerImage instanceof ObjectCollection) {
503
            return $this
504
                ->useBannerImageQuery()
505
                ->filterByPrimaryKeys($bannerImage->getPrimaryKeys())
506
                ->endUse();
507
        } else {
508
            throw new PropelException('filterByBannerImage() only accepts arguments of type \xbanners\models\BannerImage or Collection');
509
        }
510
    }
511
512
    /**
513
     * Adds a JOIN clause to the query using the BannerImage relation
514
     *
515
     * @param     string $relationAlias optional alias for the relation
0 ignored issues
show
Documentation introduced by
Should the type for parameter $relationAlias not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
516
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
517
     *
518
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
519
     */
520 View Code Duplication
    public function joinBannerImage($relationAlias = null, $joinType = Criteria::INNER_JOIN)
521
    {
522
        $tableMap = $this->getTableMap();
523
        $relationMap = $tableMap->getRelation('BannerImage');
524
525
        // create a ModelJoin object for this join
526
        $join = new ModelJoin();
527
        $join->setJoinType($joinType);
528
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
529
        if ($previousJoin = $this->getPreviousJoin()) {
530
            $join->setPreviousJoin($previousJoin);
0 ignored issues
show
Compatibility introduced by
$previousJoin of type object<Propel\Runtime\ActiveQuery\Join> is not a sub-type of object<Propel\Runtime\ActiveQuery\ModelJoin>. It seems like you assume a child class of the class Propel\Runtime\ActiveQuery\Join to be always present.

This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.

Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.

Loading history...
531
        }
532
533
        // add the ModelJoin to the current object
534
        if ($relationAlias) {
535
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
536
            $this->addJoinObject($join, $relationAlias);
537
        } else {
538
            $this->addJoinObject($join, 'BannerImage');
539
        }
540
541
        return $this;
542
    }
543
544
    /**
545
     * Use the BannerImage relation BannerImage object
546
     *
547
     * @see useQuery()
548
     *
549
     * @param     string $relationAlias optional alias for the relation,
0 ignored issues
show
Documentation introduced by
Should the type for parameter $relationAlias not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
introduced by
Paramater tags must be defined first in a doc commment
Loading history...
550
     *                                   to be used as main alias in the secondary query
0 ignored issues
show
introduced by
Parameter comment must start with a capital letter
Loading history...
introduced by
Parameter comment must end with a full stop
Loading history...
551
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
552
     *
553
     * @return \xbanners\models\BannerImageQuery A secondary query class using the current class as primary query
554
     */
555
    public function useBannerImageQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
556
    {
557
        return $this
558
            ->joinBannerImage($relationAlias, $joinType)
559
            ->useQuery($relationAlias ? $relationAlias : 'BannerImage', '\xbanners\models\BannerImageQuery');
560
    }
561
562
    /**
563
     * Filter the query by a related \xbanners\models\BannersI18n object
564
     *
565
     * @param \xbanners\models\BannersI18n|ObjectCollection $bannersI18n the related object to use as filter
566
     * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
0 ignored issues
show
Documentation introduced by
Should the type for parameter $comparison not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
567
     *
568
     * @return ChildBannersQuery The current query, for fluid interface
569
     */
570 View Code Duplication
    public function filterByBannersI18n($bannersI18n, $comparison = null)
571
    {
572
        if ($bannersI18n instanceof \xbanners\models\BannersI18n) {
573
            return $this
574
                ->addUsingAlias(BannersTableMap::COL_ID, $bannersI18n->getId(), $comparison);
575
        } elseif ($bannersI18n instanceof ObjectCollection) {
576
            return $this
577
                ->useBannersI18nQuery()
578
                ->filterByPrimaryKeys($bannersI18n->getPrimaryKeys())
579
                ->endUse();
580
        } else {
581
            throw new PropelException('filterByBannersI18n() only accepts arguments of type \xbanners\models\BannersI18n or Collection');
582
        }
583
    }
584
585
    /**
586
     * Adds a JOIN clause to the query using the BannersI18n relation
587
     *
588
     * @param     string $relationAlias optional alias for the relation
0 ignored issues
show
Documentation introduced by
Should the type for parameter $relationAlias not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
589
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
590
     *
591
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
592
     */
593 View Code Duplication
    public function joinBannersI18n($relationAlias = null, $joinType = 'LEFT JOIN')
594
    {
595
        $tableMap = $this->getTableMap();
596
        $relationMap = $tableMap->getRelation('BannersI18n');
597
598
        // create a ModelJoin object for this join
599
        $join = new ModelJoin();
600
        $join->setJoinType($joinType);
601
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
602
        if ($previousJoin = $this->getPreviousJoin()) {
603
            $join->setPreviousJoin($previousJoin);
0 ignored issues
show
Compatibility introduced by
$previousJoin of type object<Propel\Runtime\ActiveQuery\Join> is not a sub-type of object<Propel\Runtime\ActiveQuery\ModelJoin>. It seems like you assume a child class of the class Propel\Runtime\ActiveQuery\Join to be always present.

This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.

Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.

Loading history...
604
        }
605
606
        // add the ModelJoin to the current object
607
        if ($relationAlias) {
608
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
609
            $this->addJoinObject($join, $relationAlias);
610
        } else {
611
            $this->addJoinObject($join, 'BannersI18n');
612
        }
613
614
        return $this;
615
    }
616
617
    /**
618
     * Use the BannersI18n relation BannersI18n object
619
     *
620
     * @see useQuery()
621
     *
622
     * @param     string $relationAlias optional alias for the relation,
0 ignored issues
show
Documentation introduced by
Should the type for parameter $relationAlias not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
introduced by
Paramater tags must be defined first in a doc commment
Loading history...
623
     *                                   to be used as main alias in the secondary query
0 ignored issues
show
introduced by
Parameter comment must start with a capital letter
Loading history...
introduced by
Parameter comment must end with a full stop
Loading history...
624
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
625
     *
626
     * @return \xbanners\models\BannersI18nQuery A secondary query class using the current class as primary query
627
     */
628
    public function useBannersI18nQuery($relationAlias = null, $joinType = 'LEFT JOIN')
629
    {
630
        return $this
631
            ->joinBannersI18n($relationAlias, $joinType)
632
            ->useQuery($relationAlias ? $relationAlias : 'BannersI18n', '\xbanners\models\BannersI18nQuery');
633
    }
634
635
    /**
636
     * Exclude object from result
637
     *
638
     * @param   ChildBanners $banners Object to remove from the list of results
0 ignored issues
show
Documentation introduced by
Should the type for parameter $banners not be ChildBanners|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
639
     *
640
     * @return $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
641
     */
642
    public function prune($banners = null)
643
    {
644
        if ($banners) {
645
            $this->addUsingAlias(BannersTableMap::COL_ID, $banners->getId(), Criteria::NOT_EQUAL);
646
        }
647
648
        return $this;
649
    }
650
651
    /**
652
     * Deletes all rows from the banners table.
653
     *
654
     * @param ConnectionInterface $con the connection to use
0 ignored issues
show
Documentation introduced by
Should the type for parameter $con not be null|ConnectionInterface?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
655
     * @return int The number of affected rows (if supported by underlying database driver).
656
     */
657 View Code Duplication
    public function doDeleteAll(ConnectionInterface $con = null)
658
    {
659
        if (null === $con) {
660
            $con = Propel::getServiceContainer()->getWriteConnection(BannersTableMap::DATABASE_NAME);
661
        }
662
663
        // use transaction because $criteria could contain info
664
        // for more than one table or we could emulating ON DELETE CASCADE, etc.
665
        return $con->transaction(function () use ($con) {
666
            $affectedRows = 0; // initialize var to track total num of affected rows
667
            $affectedRows += $this->doOnDeleteCascade($con);
668
            $affectedRows += parent::doDeleteAll($con);
669
            // Because this db requires some delete cascade/set null emulation, we have to
670
            // clear the cached instance *after* the emulation has happened (since
671
            // instances get re-added by the select statement contained therein).
672
            BannersTableMap::clearInstancePool();
673
            BannersTableMap::clearRelatedInstancePool();
674
675
            return $affectedRows;
676
        });
677
    }
678
679
    /**
680
     * Performs a DELETE on the database based on the current ModelCriteria
681
     *
682
     * @param ConnectionInterface $con the connection to use
0 ignored issues
show
Documentation introduced by
Should the type for parameter $con not be null|ConnectionInterface?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
683
     * @return int             The number of affected rows (if supported by underlying database driver).  This includes CASCADE-related rows
684
     *                         if supported by native driver or if emulated using Propel.
685
     * @throws PropelException Any exceptions caught during processing will be
686
     *                         rethrown wrapped into a PropelException.
0 ignored issues
show
introduced by
@throws tag comment must start with a capital letter
Loading history...
687
     */
688 View Code Duplication
    public function delete(ConnectionInterface $con = null)
689
    {
690
        if (null === $con) {
691
            $con = Propel::getServiceContainer()->getWriteConnection(BannersTableMap::DATABASE_NAME);
692
        }
693
694
        $criteria = $this;
695
696
        // Set the correct dbName
697
        $criteria->setDbName(BannersTableMap::DATABASE_NAME);
698
699
        // use transaction because $criteria could contain info
700
        // for more than one table or we could emulating ON DELETE CASCADE, etc.
701
        return $con->transaction(function () use ($con, $criteria) {
702
            $affectedRows = 0; // initialize var to track total num of affected rows
703
704
            // cloning the Criteria in case it's modified by doSelect() or doSelectStmt()
705
            $c = clone $criteria;
706
            $affectedRows += $c->doOnDeleteCascade($con);
707
708
            BannersTableMap::removeInstanceFromPool($criteria);
709
710
            $affectedRows += ModelCriteria::delete($con);
711
            BannersTableMap::clearRelatedInstancePool();
712
713
            return $affectedRows;
714
        });
715
    }
716
717
    /**
718
     * This is a method for emulating ON DELETE CASCADE for DBs that don't support this
719
     * feature (like MySQL or SQLite).
720
     *
721
     * This method is not very speedy because it must perform a query first to get
722
     * the implicated records and then perform the deletes by calling those Query classes.
723
     *
724
     * This method should be used within a transaction if possible.
725
     *
726
     * @param ConnectionInterface $con
727
     * @return int The number of affected rows (if supported by underlying database driver).
728
     */
729
    protected function doOnDeleteCascade(ConnectionInterface $con)
730
    {
731
        // initialize var to track total num of affected rows
732
        $affectedRows = 0;
733
734
        // first find the objects that are implicated by the $this
735
        $objects = ChildBannersQuery::create(null, $this)->find($con);
736
        foreach ($objects as $obj) {
737
0 ignored issues
show
Coding Style introduced by
Functions must not contain multiple empty lines in a row; found 2 empty lines
Loading history...
738
739
            // delete related BannerImage objects
740
            $query = new \xbanners\models\BannerImageQuery;
0 ignored issues
show
Coding Style introduced by
Instantiating objects should always be done with parentheses.

The object instantiation should always have parentheses even if no arguments are passed:

new DateTime; // Bad
new DateTime(); // Good
Loading history...
741
742
            $query->add(BannerImageTableMap::COL_BANNER_ID, $obj->getId());
743
            $affectedRows += $query->delete($con);
744
745
            // delete related BannersI18n objects
746
            $query = new \xbanners\models\BannersI18nQuery;
0 ignored issues
show
Coding Style introduced by
Instantiating objects should always be done with parentheses.

The object instantiation should always have parentheses even if no arguments are passed:

new DateTime; // Bad
new DateTime(); // Good
Loading history...
747
748
            $query->add(BannersI18nTableMap::COL_ID, $obj->getId());
749
            $affectedRows += $query->delete($con);
750
        }
751
752
        return $affectedRows;
753
    }
754
755
    // i18n behavior
756
757
    /**
758
     * Adds a JOIN clause to the query using the i18n relation
759
     *
760
     * @param     string $locale Locale to use for the join condition, e.g. 'fr_FR'
761
     * @param     string $relationAlias optional alias for the relation
0 ignored issues
show
Documentation introduced by
Should the type for parameter $relationAlias not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
762
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.
763
     *
764
     * @return    ChildBannersQuery The current query, for fluid interface
765
     */
766 View Code Duplication
    public function joinI18n($locale = 'ru', $relationAlias = null, $joinType = Criteria::LEFT_JOIN)
767
    {
768
        $relationName = $relationAlias ? $relationAlias : 'BannersI18n';
769
770
        return $this
771
            ->joinBannersI18n($relationAlias, $joinType)
772
            ->addJoinCondition($relationName, $relationName . '.Locale = ?', $locale);
773
    }
774
775
    /**
776
     * Adds a JOIN clause to the query and hydrates the related I18n object.
777
     * Shortcut for $c->joinI18n($locale)->with()
778
     *
779
     * @param     string $locale Locale to use for the join condition, e.g. 'fr_FR'
780
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.
781
     *
782
     * @return    $this|ChildBannersQuery The current query, for fluid interface
0 ignored issues
show
introduced by
@return data type must not contain "$"
Loading history...
783
     */
784 View Code Duplication
    public function joinWithI18n($locale = 'ru', $joinType = Criteria::LEFT_JOIN)
785
    {
786
        $this
787
            ->joinI18n($locale, null, $joinType)
788
            ->with('BannersI18n');
789
        $this->with['BannersI18n']->setIsWithOneToMany(false);
790
791
        return $this;
792
    }
793
794
    /**
795
     * Use the I18n relation query object
796
     *
797
     * @see       useQuery()
798
     *
799
     * @param     string $locale Locale to use for the join condition, e.g. 'fr_FR'
0 ignored issues
show
introduced by
Paramater tags must be defined first in a doc commment
Loading history...
800
     * @param     string $relationAlias optional alias for the relation
0 ignored issues
show
Documentation introduced by
Should the type for parameter $relationAlias not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
801
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.
802
     *
803
     * @return    ChildBannersI18nQuery A secondary query class using the current class as primary query
804
     */
805
    public function useI18nQuery($locale = 'ru', $relationAlias = null, $joinType = Criteria::LEFT_JOIN)
806
    {
807
        return $this
808
            ->joinI18n($locale, $relationAlias, $joinType)
809
            ->useQuery($relationAlias ? $relationAlias : 'BannersI18n', '\xbanners\models\BannersI18nQuery');
810
    }
811
812
} // BannersQuery
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
813