[READ-ONLY] Provides connection managing and traits for Entities and Queries that can be reused for…

Repo Url https://github.com/cakephp/datasource
Clone Url:
Watchers 4
Issues 0
Forks 1
Last Pushed At 2016-04-25
Tags has:composer has:license has:readme keyword:datasource keyword:entity keyword:query license:mit version:4.x
Last fetched: on 1/3/20

Recent Activity

Date Commit Message
2025-07-27 More defaults and doc block corrections.
2025-07-27 Merge branch '3.0' into 3.0-validation-revisit
2025-07-27 Moved the Model namespace into ORM so it can be distributed easier Also moved ModelAwareTrait to Datasource it I think it makes more sense there
2025-07-27 Run phpcbf for PSR2 CS fixers
2025-07-27 Allowing null to be passed to newEntity() This helps creting new entities without running any validation
2025-07-27 Moving the EntityInterface::validate() method to another interface Since we have validation hapening in the marshaller instead, moving this type of validation as an opt-in feature seems to be the best for now
2025-07-27 Fixing CS errors
2025-07-27 Implemented a change in Entity::errors() so that nested errors are returned This is a common request and something that had to be hacked in DebugKit. With the changes done in validation, this is a required change as there would be no other way of telling wheter a validation routine set any errors in nested entities.
2025-07-27 Merge remote-tracking branch 'origin/3.0' into 3.0-validation-revisit Conflicts: tests/TestCase/ORM/TableTest.php
2025-07-27 Add InvalidPrimaryKeyException Used with findOrFail when passed an invalid pk
2025-07-27 More corrections of doc blocks.
2025-07-27 Test against `EntityInterface` instead of `self` Classes consuming `EntityTrait` do not necessarily have to extend `Entity`, testing against `self` would fail in various cases, like for example when one of the compared objects extends `Entity` and the other just implements `EntityInterface`.
2025-07-27 Fix reading of nested errros Testing the objects with `instanceof static` will not work for different classes that extend `Entity`, as `static` will refer to the extending class, ie the objects would get tested against the class on which the `errors()` method is being called.
2025-07-27 Make atomic updateAll and deleteAll return the affected rows instead of bool.
2025-07-27 Correct use statements
2025-07-27 Merge remote-tracking branch 'origin/3.0' into 3.0-validation-revisit Conflicts: src/Datasource/EntityInterface.php src/Datasource/EntityTrait.php tests/TestCase/ORM/TableTest.php
2025-07-27 Fix PHPCS errors.
2025-07-27 Move RecordNotFoundException to Datasource. Also move findOrFail() into QueryTrait so it can be used in other queryable implementations.
2025-07-27 update exception class