silverstripe-framework/tests/php/ORM/Search/SearchContextTest.yml
Tyler Trout 6b1c5eb6d7
NEW Allow methods to be used for flexible searchable_fields (#10199)
* Allow methods to be used for flexible searchable_fields

* match_any key

* Documentation

* Update docs/en/02_Developer_Guides/00_Model/11_Scaffolding.md

Co-authored-by: GuySartorelli <36352093+GuySartorelli@users.noreply.github.com>

* Search fields test

* Newlines

* Update src/ORM/Search/SearchContext.php

Co-authored-by: Steve Boyd <emteknetnz@gmail.com>

* Update docs/en/02_Developer_Guides/00_Model/11_Scaffolding.md

Co-authored-by: Steve Boyd <emteknetnz@gmail.com>

* Removed comments and whitespace. Linting fixes

Co-authored-by: GuySartorelli <36352093+GuySartorelli@users.noreply.github.com>
Co-authored-by: Steve Boyd <emteknetnz@gmail.com>
2022-02-10 09:40:16 +13:00

86 lines
2.4 KiB
YAML

SilverStripe\ORM\Tests\Search\SearchContextTest\Person:
person1:
Name: James
Email: james@example.com
HairColor: brown
EyeColor: brown
person2:
Name: John
Email: john@example.com
HairColor: blond
EyeColor: blue
person3:
Name: Jane
Email: jane@example.com
HairColor: brown
EyeColor: green
person4:
Name: Hemi
Email: hemi@example.com
HairColor: black
EyeColor: brown
person5:
Name: Sara
Email: sara@example.com
HairColor: black
EyeColor: green
SilverStripe\ORM\Tests\Search\SearchContextTest\Action:
action1:
Description: Get search context working
SolutionArea: technical
action2:
Description: Get relationship editor working
SolutionArea: design
action3:
Description: Get RSS feeds working
SolutionArea: technical
action4:
Description: New logotype
SolutionArea: design
SilverStripe\ORM\Tests\Search\SearchContextTest\Deadline:
deadline1:
CompletionDate: 2008-05-29 09:00:00
deadline2:
CompletionDate: 2008-05-20 09:00:00
SilverStripe\ORM\Tests\Search\SearchContextTest\Project:
project1:
Name: CRM Application
DeadlineID: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Deadline.deadline1
Actions:
- =>SilverStripe\ORM\Tests\Search\SearchContextTest\Action.action1
- =>SilverStripe\ORM\Tests\Search\SearchContextTest\Action.action2
project2:
Name: Blog Website
DeadlineID: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Deadline.deadline2
Actions:
- =>SilverStripe\ORM\Tests\Search\SearchContextTest\Action.action3
- =>SilverStripe\ORM\Tests\Search\SearchContextTest\Action.action4
SilverStripe\ORM\Tests\Search\SearchContextTest\AllFilterTypes:
filter1:
ExactMatch: Match me exactly
PartialMatch: Match me partially
Negation: Shouldnt match me
HiddenValue: Filtered value
CollectionMatch: ExistingCollectionValue
StartsWith: 12345-6789 CamelCase
EndsWith: abcd-efgh-ijkl
FulltextField: one two three
SilverStripe\ORM\Tests\Search\SearchContextTest\Customer:
customer1:
FirstName: Bill
SilverStripe\ORM\Tests\Search\SearchContextTest\Address:
address1:
FirstName: Bob
SilverStripe\ORM\Tests\Search\SearchContextTest\Order:
order1:
Customer: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Customer.customer1
ShippingAddress: =>SilverStripe\ORM\Tests\Search\SearchContextTest\Address.address1