Componette

Componette

nettrine

nettrine / orm v0.8.0

Well-integrated Doctrine2 ORM for Nette Framework

download-cloud-line composer require nettrine/orm

Website 🚀 contributte.org | Contact 👨đŸģ‍đŸ’ģ f3l1x.io | Twitter đŸĻ @contributte

Usage

To install the latest version of nettrine/orm use Composer.

composer require nettrine/orm

Documentation

For details on how to use this package, check out our documentation.

Versions

State Version Branch Nette PHP
dev ^0.8 master 3.0+ >=7.2
stable ^0.7 master 3.0+ ^7.2
stable ^0.3 master 2.4 ^7.1

Development

See how to contribute to this package.

This package is currently maintaining by these authors.

Sponsoring


Consider to support contributte development team. Also thank you for using this package.

  • v0.8.0 v0.8.0

    Bumped! 👨đŸŊ

    Diff: v0.7.1...v0.8.0

    Changes:

    • PHP 8
    • Travis -> Github Actions
    • PHPUnit -> Nette Tester
  • v0.7.1 v0.7.1

    Bumped! đŸˆē

    Diff: v0.7.0...v0.7.1

    Changes:

    • Extension configuration supports string/service/reference at definition:
      • namingStrategy
      • quoteStrategy
      • entityListenerResolver
      • repositoryFactory
    • Better docs
    • Better tests
    • Allow PHP >=7.2
  • v0.7.0 v0.7.0

    Bumped! 💅

    Diff: v0.6.1...v0.7.0

    Changes:

    • Rework mapping [BC break] [#75]

    Configuration for annotation and xml changed.

    Before

    nettrine.orm.annotations:
      namespaces: [App\Model\Database]
      paths: [%appDir%/Model/Database]

    After

    nettrine.orm.annotations:
      mapping:
        App\Model\Database: %appDir%/Model/Database

    Dropped TEntityMapping, introduced more powerfull EntityHelper.

    Before

    class CategoryExtension extends CompilerExtension
    {
      use TEntityMapping;
    
      public function beforeCompile(): void
      {
        $this->setEntityMappings([
          'Forum' => __DIR__ . '/../Entity',
        ]);
      }
    }

    After

    class CategoryExtension extends CompilerExtension
    {
      public function beforeCompile(): void
      {
        MappingHelper::of($this)
            ->addAnnotation( __DIR__ . '/../app/Model/Database', 'App\Model\Database')
            ->addAnnotation( __DIR__ . '/../../modules/Forum/Database', 'Forum\Modules\Database');
      }
    }
  • v0.3.1 v0.3.1

    Bumped! đŸ‡¯đŸ‡´

    Diff: v0.3.0...v0.3.1

    Changes:

  • v0.6.1 v0.6.1

    Bumped! đŸ‡¯đŸ‡´

    Diff: v0.6.0...v0.6.1

    Changes:

  • v0.6.0 v0.6.0

    Bumped! 😂

    Diff: v0.5.0...v0.6.0

    Changes:

    • Allow to register filters [#72] 9fe0db4
    • Simplify EntityManagerDecorator 1004c72
    • Switch mappingDriver to MappingDriverChain [#27]
    • Fix secondLevelCache schema b2fa8b9
    • Sync entityNamespaces schema
    • Polished readme
    • Polished tests
  • v0.5.0 v0.5.0

    Bumped! 🕹ī¸

    Diff: v0.4.1...v0.5.0

    Changes:

  • v0.4.1 v0.4.1

    Bumped! 🎃

    Diff: v0.4.0...v0.4.1

    Changes:

    • quoteStrategy config fix bb0ed30
    • removed inner entity manager 6b5384e
    • require nettrine/dbal 0.5 || 0.6 064f584
  • v0.4.0 v0.4.0

    Bumped! 🐨

    Diff: v0.3...v0.4.0

    Changes:

  • v0.3 v0.3

    Bumped! 🏷

    Diff: v0.2.2...v0.3

    Changes:

    • added EntityManagerDecorator, because EntityManager is final [#22][#41]
    • added XML bridge [#42](thanks @JanMikes + @JanGalek)
    • added configurationClass [#46](thanks @aleswita)
    • use Phpstan v0.11
    • improve docs (@mabar, @Gappa)
    • upgrade minimal deps (nette/di, nette/utils, symfony/console, doctrine/orm, doctrine/cache)
  • v0.2.2 v0.2.2

    Bumped! đŸ•ŗ

    Diff: v0.2.1...v0.2.2

    Changes:

    • use Phpstan v0.10
    • OrmCacheExtension: assert there's some cache
    • OrmAnnotationExtension: refactor cache handling
    • readme: synchronize
    • command: added orm:clear-cache:metadata [#31]
    • added TEntityMapping class for modular systems [#34]
    • added SecondLevelCache [#37]
  • v0.2.1 v0.2.1

    Bumped! 🈂ī¸

    Diff: v0.2...v0.2.1

    Changes:

  • v0.2 v0.2

    Bumped! 🔡

    Diff: v0.1...v0.2

    Changes:

    • cache drivers are not autowired (thanks @jiripudil) [#23]
    • DI: setClass -> setType/setFactory (thanks @MartkCz) [#20]
    • better cache handling/configuring [#12]
    • Annotations: excludePaths (thanks @jankonas) [#19]
    • EntityManagerFactory: autowire event manager [#11]
    • CacheReader: debug parameter (thanks @kedlas) [#13]
    • Console commands: added tags for contributte/console [#14] (common tag console.command)
  • v0.1 v0.1

    First bump! 👊

bar-chart-fill

Statistics

download-cloud-fill
193799
star-fill
50
bug-fill
6
flashlight-fill
9d
price-tag-2-line

Badges

guide-fill

Dependencies

php (^7.2)
nette/di (~3.0.0)
nette/utils (~3.0.1)
nettrine/dbal (^0.5.0 || ^0.6.0)
Componette Componette felix@nette.org