spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer
http://phpdatamapper.com
BSD 3-Clause "New" or "Revised" License
601 stars 101 forks source link

Bitwise operators #293

Closed michalp82 closed 4 years ago

michalp82 commented 4 years ago

Spot has no bitwise () operator support. Is implementation in next realise or workaround possible? I need the common:

& (bitwise AND) | (bitwise OR) ~ (bitwise NOT) ^ (bitwise XOR)

FlipEverything commented 4 years ago

You can add custom operators to spot. Did you mean that as a possible workaround?

michalp82 commented 4 years ago

Thx. This is what I needed