# How list filter work? (database)

**URL:** <https://forum.mautic.org/t/how-list-filter-work-database/6286>\
**Category:** Development\
**Created:** [October 19, 2016, 10:34pm UTC](https://forum.mautic.org/t/how-list-filter-work-database/6286 "2016-10-19T22:34:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [October 19, 2016, 10:34pm UTC](https://forum.mautic.org/t/how-list-filter-work-database/6286/1 "2016-10-19T22:34:50Z")

</div>

Hi,  
  
I’m trying to wrap my mind around Mautic lists. I have a list with one rule: Email is known, which has filters saved in database as:

Code:

a:1:{i:0;a:7:{s:4:"glue";s:3:"and";s:5:"field";s:5:"email";s:6:"object";s:4:"lead";s:4:"type";s:5:"email";s:6:"filter";N;s:7:"display";N;s:8:"operator";s:6:"!empty";}}

  
I found operators used here in getChoiceFields() method in https://github.com/mautic/mautic/blob/staging/app/bundles/LeadBundle/Model/ListModel.php  
  
How does this code is translated into actions?

---

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [October 19, 2016, 10:34pm UTC](https://forum.mautic.org/t/how-list-filter-work-database/6286/2 "2016-10-19T22:34:50Z")

</div>

Hi,  
I’m trying to wrap my mind around Mautic lists. I have a list with one rule: Email is known, which has filters saved in database as:

```auto
a:1:{i:0;a:7:{s:4:"glue";s:3:"and";s:5:"field";s:5:"email";s:6:"object";s:4:"lead";s:4:"type";s:5:"email";s:6:"filter";N;s:7:"display";N;s:8:"operator";s:6:"!empty";}}
```

I found operators used here in getChoiceFields() method in [https://github.com/mautic/mautic/blob/staging/app/bundles/LeadBundle/Model/ListModel.php](https://github.com/mautic/mautic/blob/staging/app/bundles/LeadBundle/Model/ListModel.php)

How does this code is translated into actions?
