Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Loiseau
MagicWord
Commits
e1819c1c
Commit
e1819c1c
authored
May 23, 2019
by
Arnaud Bey
Browse files
add index on clean value
parent
745c6643
Changes
2
Show whitespace changes
Inline
Side-by-side
application/src/LexiconBundle/Entity/Word.php
View file @
e1819c1c
...
...
@@ -6,9 +6,13 @@ use Doctrine\Common\Collections\ArrayCollection;
use
Doctrine\Common\Collections\Collection
;
use
Doctrine\ORM\Mapping
as
ORM
;
use
JsonSerializable
;
use
Doctrine\ORM\Mapping\Index
;
/**
* @ORM\Table(name="lexicon_word")
* @ORM\Table(name="lexicon_word", indexes={
* @Index(columns={"clean_value"}, name="cleanValue"),
* @Index(name="language", columns={"language_id"}),
* }))
* @ORM\Entity(repositoryClass="LexiconBundle\Repository\WordRepository")
*/
class
Word
implements
JsonSerializable
...
...
application/src/MagicWordBundle/Manager/GridManager.php
View file @
e1819c1c
...
...
@@ -48,6 +48,7 @@ class GridManager
public
function
generate
(
Language
$language
,
$debug
=
false
,
$minBigram
=
null
)
{
$grid
=
$this
->
newGrid
(
$language
,
4
);
$minBigram
=
(
$minBigram
==
null
)
?
$language
->
getMinBigram
()
:
$minBigram
;
$letters
=
$this
->
lottery
(
$language
,
4
,
$debug
,
$minBigram
);
...
...
Write
Preview
Supports
Markdown
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