PLEASE NOTE, THIS PROJECT IS MOVED TO A NEW REPOSITORY AND IS NO LONGER BEING MAINTAINED.
MIT License (MIT). Please see LICENSE
for more information. Maintained by Spiral Scout.
ORM with transaction scopes (UoW), repositories, in-memory mocking, hybrid databases, logical partitions, full database scaffolding, recursive relations, polymorphic relations, relations to interfaces (static analysis tools included)
Home Page: https://spiral-framework.com
License: MIT License
MIT License (MIT). Please see LICENSE
for more information. Maintained by Spiral Scout.
At this moment this is not possible due ambiguous pivot table location. Must be fixed.
$posts->load('comments', [
'orderBy' => [
'{@}.time_created' => 'DESC'
],
'limit' => 10
]);
Example:
$user = $user->findOne();
//...
$posts->find()->where('author', $user);
Current approaches:
To remove nullable has-one relation I need to do this:
$record->relation_record->delete();
$record->relation_record = null;
If current child record's value is null, it can be filled with setFields()
instead of = create(new Record())
This behaviour is confusing
Modify getDatatbase and getTable methods of ORMInterface + Schema constants.
example entity:
class Entity extends Record
const SCHEMA = [
...
'many-to-many' => [
...
self::PIVOT_COLUMNS => [
'sortColumn' => 'int'
],
....
]
example usage:
..->find()->with('relation', ['alias' => 'r'])->orderBy('r.sortColumn')
if custom-named index exists in table then schema update throw an exception like:
SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP '[ORM_NAME_INDEX]'; check that column/key exists
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.