Xiquita
QueryBuilder Filter returns nothing
Based on your description, it seems like there might be an issue with the is operator in the RelationshipConstraint.
One possible reason could be that the titleAttribute is not configured correctly. Make sure that you are specifying the correct attribute that represents the title in the article relationship.
Additionally, you can try using the isExactly operator instead of is to see if it returns the expected results. For example:
QueryBuilder::make()
->constraints([
QueryBuilder\Constraints\TextConstraint::make('customer.name'),
QueryBuilder\Constraints\RelationshipConstraint::make('article')
->emptyable()
->selectable(QueryBuilder\Constraints\RelationshipConstraint\Operators\IsRelatedToOperator::make()
->titleAttribute('title')
->isExactly())]),
If the issue persists, it might be helpful to provide more information about the data structure and any error messages you are receiving.
4 replies
Create new custom input
because the idea I have is that in the same resource form I can have a button that asks the user a question, "What is the question to ask?" and another asking what type of field? text input or check box? and when the user submits these questions he adds them to the resource form
10 replies