I have the following schema:

TableA:
  columns:
    id:
      type: integer(8)
      unsigned: 1
      primary: true
      autoincrement: true
    name:
      type: string(255)
      notnull: true
    group_id:
      type: integer(8)
      unsigned: 1
      notnull: false
      default: null
  relations:
    MyGroup:
      local: group_id
      foreign: id
      type: one
      onDelete: CASCADE
MyGroup:
  columns:
    id:
      type: integer(8)
      unsigned: 1
      primary: true
      autoincrement: true
    name:
      type: string(255)
      notnull: true

As you can see, the relation-field group_id is nullable.

The generated filter-form for TableA does not contain a is_empty field
for group_id and therefor it is not possible to filter by TableA-
Objects without a MyGroup.

I could not find a soloution, so I added a custom filter.

Does anyone also believe that an is_empty-filter for nullable
relations should be contained in the generated filter-form?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to