Level-2 / Maphper

Maphper - A php ORM using the Data Mapper pattern
BSD 2-Clause "Simplified" License
52 stars 7 forks source link

Primary Key with Filter #46

Closed solleer closed 7 years ago

solleer commented 7 years ago

If you have this data id name type 1 Test1 A 2 Test2 A 3 Test3 B

And have a maphper for it then do this

$maphper->filter(['type' => 'a']);

The following returns the Test3 row despite it not matching the filter

$maphper[3]

Is there a way to have accessing the primary key to take into account the filter