Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
6d3f2790
Commit
6d3f2790
authored
Mar 23, 2022
by
alissonalbuquerque
Browse files
add alteracao de funcionalidade de Queries
parent
3d1784eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Queries/PlanejamentoQuery.php
View file @
6d3f2790
...
...
@@ -16,7 +16,7 @@ class PlanejamentoQuery extends Query {
* @return Builder
*/
public
function
whereDimensao
(
int
$dimensao
,
string
$expression
=
'='
)
{
return
$this
->
query
->
where
(
'dimensao'
,
$expression
,
$dimensao
);
$this
->
query
=
$this
->
query
->
where
(
'dimensao'
,
$expression
,
$dimensao
);
}
/**
...
...
@@ -25,7 +25,7 @@ class PlanejamentoQuery extends Query {
* @return Builder
*/
public
function
whereCodDimensao
(
string
$cod_dimensao
,
string
$expression
=
'='
)
{
return
$this
->
query
->
where
(
'cod_dimensao'
,
$expression
,
$cod_dimensao
);
$this
->
query
=
$this
->
query
->
where
(
'cod_dimensao'
,
$expression
,
$cod_dimensao
);
}
/**
...
...
@@ -34,7 +34,7 @@ class PlanejamentoQuery extends Query {
* @return Builder
*/
public
function
whereInCodDimensao
(
$codes_dimensao
)
{
return
$this
->
query
->
whereIn
(
'cod_dimensao'
,
$codes_dimensao
);
$this
->
query
=
$this
->
query
->
whereIn
(
'cod_dimensao'
,
$codes_dimensao
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment