data
data copied to clipboard
Data Access PHP Framework for SQL & high-latency databases
If you create an aggregate Model an group by certain fields which are hasOne references in the source model, it would be convenient to also have/keep those references in the...
http://sqlfiddle.com/#!5/9eecb7/14481 ``` SELECT 1.5 > '1'; SELECT 1.5 > '1.2'; SELECT 1.5 > ('1' + 0); SELECT 1.5 > ('1.2' + 0); SELECT typeof('1' + 0); SELECT typeof('1.2' + 0);...
- Introduce constants to declare Model field filter presets - Adds `Model::FIELD_FILTER_PERSIST` filter preset - Adds `Model::FIELD_FILTER_ONLY_FIELDS` filter preset - uses new presets to remove duplicate code - Provide the...
failing test: `Atk4\Data\Tests\Util\DeepCopyTest::testBasic`
Of course, I am thinking about optimal data modelling, not about implementation. Implementation is always possible. > Because of separation of Model and Persistence. Each persistence handles the JOIN in...
see https://github.com/atk4/data/pull/660/files/e1e0ae7947f60c268245e51ca12eafa5a45810dd#diff-d11d2f7d35e15c2e79f43737267e1c00 and related code: https://github.com/atk4/data/blob/2f89724cfd4fd8c923ffc1761a96ac218591e9ca/src/Model/Scope/Condition.php#L101-L115
replaces #692 and #1058 (issue #967)
related initial issue #967
Use case: You have code which updates the total sum of an order. Now the customer adds an order position with price = 0. You don't want to deal with...