Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Split from components.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Feb 3, 2017
1 parent f7f0fe0 commit c182fad
Show file tree
Hide file tree
Showing 120 changed files with 16 additions and 163 deletions.
2 changes: 0 additions & 2 deletions .env.sample

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ build/logs/*
build/
*.db
clover.xml
coveralls.json
clover.json
110 changes: 2 additions & 108 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,112 +1,6 @@
CHANGELOG for 0.9.0 RC
======================

0.9.6 (03.02.2017)
0.9.0 (03.02.2017)
-----
**General**
* Lazy wire declaration for FactoryInterface

0.9.5 (01.02.2017)
-----
**DBAL**
* Ability to use nested queries in JOIN statements
* on argument in join() methods is deprecated, use on() function directly

**ORM**
* Optimizations in load method with "using" option

0.9.4 (30.01.2017)
-----
**General**
* Container is not clonable

**Stempler**
* StemplerLoader synced with Twig abstraction, StemplerSource introduced

0.9.3 (28.01.2017)
-----
**Stempler**
* SourceContext (twig like) have been added

0.9.2 (27.01.2017)
-----
**ORM**
* Added late bindings (locate outer record based on Interface or role name)
* Added detach() method into HasMany relation

0.9.0 (23.01.2017)
-----
**General**
* Dropped support of PHP5+
* Code coverage improvements
* Cache component removed (replaced with PSR-16)
* Views component moved to Framework bundle
* Validation component moved to Framework bundle
* Translation component moved to Framework bundle
* Encryption component moved to Framework bundle
* Migrations component moved in
* Automatic migration generation is now part of Migration component
* Security component moved in
* Monolog dependency removed
* PHPUnit updated to 5.0 branch
* Symfony dependencies updated to 3.0 branch
* Schema definitions moved to array constants instead of default property values
* Simplified PaginatorInterface
* Reactor component moved in
* Debugger (log manager) component removed
* Improved implementation of Tokenizer component

**Core**
* ScoperInterface moved into Framework bundle
* Container now validates scalar agument types when supplied by user

**DBAL**
* Improved polyfills for SQLServer
* Improved SQL injection prevention
* Improved timezone management
* Refactoring of DBAL schemas
* Bugfixes
* Unions with ordering in SQLServer
* Invalid parameter handling for update queries with nested selection
* Pagination classes are immutable now

**Models**
* Removed features
* Embedded validations
* Magic getter and setter methods via __call()
* setValue and packValue methods added
* "fields" property is now private
* SolidableTrait is now part of models

**ORM**
* Refactoring of SchemaBuilder
* RecordSelector does not extend SelectQuery anymore
* Transactional (UnitOfWork) support
* Improvements in memory mapping
* Improvements in tree operations (save)
* Removed features
* ActiveRecord thought direct table communication
* MutableNumber accessor
* Validations
* Bugfixes
* ManyToMany relations to non-saved records
* BelongsToRelation to non-saved records
* Definition of morphed relations must be explicit now
* All ORM entities MUST have proper primary key now
* Ability to define custom column types in combination with accessors
* Relation loaders and schemas are immutable now
* Memory scope are optional now
* Record does not have "source" method by default now (see SourceTrait)

**ODM**
* Moved to latest PHP7 mongo drivers
* Removed features
* Validations
* Removed parent document reference in compositions
* Scalar array split into multiple versions
* CompositableInterface improved
* Document does not have "source" method by default now (see SourceTrait)

**Storage**
* Improved implementation of RackspaceServer
* Added GridFS server support
* Split from components package
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Spiral ORM
========
[![Latest Stable Version](https://poser.pugx.org/spiral/orm/v/stable)](https://packagist.org/packages/spiral/orm)
[![License](https://poser.pugx.org/spiral/orm/license)](https://packagist.org/packages/spiral/orm)
[![Build Status](https://travis-ci.org/spiral/orm.svg?branch=master)](https://travis-ci.org/spiral/orm)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spiral/orm/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/spiral/orm/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/spiral/orm/badge.svg?branch=master)](https://coveralls.io/github/spiral/orm?branch=master)

<b>[Documentation](http://spiral-framework.com/guide)</b> | [CHANGELOG](/CHANGELOG.md)
16 changes: 3 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,15 @@
],
"require": {
"php": ">=7.0",
"ext-mbstring": "*",
"ext-openssl": "*",
"psr/log": "*",
"container-interop/container-interop": "^1.1",
"psr/http-message": "^1.0",
"psr/simple-cache": "^1.0",
"doctrine/inflector": "^v1.1",
"symfony/finder": "^3.0",
"symfony/event-dispatcher": "^3.0"
"spiral/common": "^0.9",
"spiral/database": "^0.9"
},
"require-dev": {
"phpunit/phpunit": "~5.0",
"mockery/mockery": "^0.9.4",
"vlucas/phpdotenv": "^2.1"
"mockery/mockery": "^0.9.4"
},
"autoload": {
"files": [
"source/functions.php"
],
"psr-4": {
"Spiral\\": "source/Spiral/"
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 1 addition & 39 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,4 @@

//File component fixtures
define('FIXTURE_DIRECTORY', __DIR__ . '/Files/fixtures/');

if (!function_exists('env')) {
function env(string $key, $default = null)
{
$value = getenv($key);
if (is_null($value)) {
return $default;
}

switch (strtolower($value)) {
case 'true':
case '(true)':
return true;

case 'false':
case '(false)':
return false;

case 'null':
case '(null)':
return null;

case 'empty':
case '(empty)':
return '';
}

return $value;
}
}

//Always keep it outside of repo.
if (file_exists(dirname(__DIR__) . '/.env')) {
$loader = new \Dotenv\Loader(dirname(__DIR__) . '/.env');
$loader->load();
}

//Set to true to enter the Matrix
define('ENABLE_PROFILING', env('PROFILING', false));
define('ENABLE_PROFILING', getenv('PROFILING') ?? false);

0 comments on commit c182fad

Please sign in to comment.