├── doctrine ├── tests ├── source │ ├── api │ │ ├── orm.html │ │ └── inflector.html │ ├── projects │ │ ├── doctrine-orm.html │ │ └── doctrine-inflector.html │ ├── css │ │ └── style.css │ └── blog │ │ ├── 2018-09-01-test-blog-post2.html │ │ └── 2018-09-02-test-blog-post1.html ├── test-projects │ ├── empty-json │ │ └── composer.json │ ├── test-project │ │ ├── .doctrine-project.json │ │ ├── docs │ │ │ └── index.rst │ │ ├── src │ │ │ └── test.php │ │ └── composer.json │ └── invalid-project-json │ │ └── .doctrine-project.json ├── .webpack-build │ └── css │ │ └── style.css ├── Docs │ └── resources │ │ ├── example-project │ │ └── docs │ │ │ └── en │ │ │ ├── reference │ │ │ └── getting-started.rst │ │ │ ├── about.rst │ │ │ ├── example.rst │ │ │ ├── cookbook │ │ │ ├── nested │ │ │ │ └── nested.rst │ │ │ └── article.rst │ │ │ └── cross-ref.rst │ │ ├── search-indexer-with-quotes │ │ └── index.rst │ │ ├── search-indexer │ │ └── index.rst │ │ └── docs │ │ └── example-project │ │ └── en │ │ └── 1.0 │ │ ├── about.rst │ │ ├── reference │ │ └── getting-started.rst │ │ ├── example.rst │ │ ├── cookbook │ │ ├── nested │ │ │ └── nested.rst │ │ └── article.rst │ │ └── cross-ref.rst ├── DataSources │ ├── DbPrefill │ │ ├── Foo.php │ │ └── fixtures │ │ │ └── partners.json │ └── ArrayDataSourceTest.php ├── Projects │ ├── ProjectDataRepositoryTest.php │ ├── GetProjectPackagistDataTest.php │ └── GetTotalDownloadsTest.php ├── phpunit-build-all.xml ├── test-cache │ └── data │ │ └── blog_posts.json ├── ProcessFactoryTest.php ├── Model │ └── SitemapPageTest.php └── Requests │ └── PartnerRequestsTest.php ├── cache └── .gitignore ├── .babelrc ├── config ├── config_dev.yml ├── config_staging.yml ├── packages │ └── guides.yml ├── config_prod.yml ├── config_test.yml ├── local.yml.dist └── services │ └── orm.php ├── jest └── setup │ └── jest.js ├── source ├── favicon.ico ├── doctrine1.zip ├── images │ ├── og.png │ ├── jwage.png │ ├── marco.png │ ├── favicon.ico │ ├── favicon-128.png │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon-96x96.png │ ├── mstile-70x70.png │ ├── symfony-logo.png │ ├── tidelift-icon.png │ ├── tidelift-logo.png │ ├── default-branch.png │ ├── favicon-196x196.png │ ├── mstile-144x144.png │ ├── mstile-150x150.png │ ├── mstile-310x150.png │ ├── mstile-310x310.png │ ├── partners │ │ └── tideways.png │ ├── search-by-algolia.png │ ├── apple-touch-icon-57x57.png │ ├── apple-touch-icon-60x60.png │ ├── apple-touch-icon-72x72.png │ ├── apple-touch-icon-76x76.png │ ├── laminas-foundation-logo.png │ ├── apple-touch-icon-114x114.png │ ├── apple-touch-icon-120x120.png │ ├── apple-touch-icon-144x144.png │ └── apple-touch-icon-152x152.png ├── robots.txt ├── blog │ ├── 2012-03-07-new-doctrine-website.md │ ├── 2008-09-23-doctrine-at-latino-ware-2008.md │ ├── 2008-10-02-doctrine-1-1-development-begins.md │ ├── 2010-03-01-introduction-to-doctrine-2-webinar.md │ ├── 2009-06-28-introducing-the-google-i18n-extension.md │ ├── 2010-08-24-doctrine-orm-version-1-2-3-released.md │ ├── 2007-12-08-new_design.md │ ├── 2008-03-04-doctrine-cheat-sheet.md │ ├── 2008-03-01-0-10-2-released.md │ ├── 2008-10-13-doctrine-1-0-3-released.md │ ├── 2008-09-09-doctrine-1-0-1-released.md │ ├── 2007-12-04-url_changes.md │ ├── 2009-10-02-doctrine-fedora-package.md │ ├── 2008-05-31-0-11-0-rc3-released.md │ ├── 2008-01-29-using-doctrine-with-codeigniter.md │ ├── 2008-09-11-doctrine-1-0-2-released.md │ ├── 2008-06-29-1000th-ticket-closed.md │ ├── 2008-04-01-doctrine-goes-pecl.md │ ├── 2007-12-03-beta2_released.md │ ├── 2008-07-01-introducing-the-doctrine-forum.md │ ├── 2008-07-25-who-is-behind-doctrine.md │ ├── 2007-10-09-first-website.md │ ├── 2008-04-30-0-11-0-release-candidate-2.md │ ├── 2008-04-30-wow-1000-tickets.md │ ├── 2008-09-05-doctrine-at-symfony-camp2008.md │ ├── 2008-03-29-using-doctrine-zend-framework.md │ ├── 2023-08-21-doctrine-orm-team-meetup.md │ ├── 2024-07-09-doctrine-core-team-meetup.md │ ├── 2008-11-25-doctrine-1-0-4-released.md │ ├── 2008-04-05-doctrine-frequently-asked-questions.md │ ├── 2008-03-02-my-first-project-doctrine-tutorial.md │ ├── 2008-09-18-doctrine-and-symfony-frameworks-collaborating.md │ ├── 2008-07-24-taking-advantage-of-column-aggregation-inheritance.md │ ├── 2008-07-21-plug-and-play-schema-information-with-templates.md │ ├── 2011-06-28-doctrine-2-1-rc2.md │ ├── 2011-11-23-doctrine-orm-2-1-4-released.md │ ├── 2008-07-26-doctrine-growth.md │ ├── 2008-06-16-getting-started-with-doctrine-and-symfony-1-1.md │ ├── 2012-03-04-doctrine-2-2-1-released.md │ ├── 2008-03-28-0-10-4-released-46-closed-tickets.md │ ├── 2009-12-01-more-doctrine-releases.md │ ├── 2012-01-30-doctrine-2-1-6.md │ ├── 2011-12-19-doctrine-2-1-5.md │ ├── 2008-07-02-doctrine-1-0-and-symfony-1-2.md │ ├── 2009-05-11-doctrine-1-0-9-and-1-1-1-released.md │ ├── 2007-11-02-beta-2.md │ ├── 2013-03-24-doctrine-2-3-3.md │ ├── 2008-08-06-master-and-slave-connections.md │ ├── 2013-01-08-doctrine-2-3-2.md │ ├── 2008-05-11-road-to-doctrine-1-0.md │ ├── 2007-10-14-new-coverage-report.md │ ├── 2011-06-17-doctrine-2-0-6.md │ ├── 2008-03-18-0-10-3-released.md │ ├── 2009-11-10-doctrine-1-2-0-beta2-released.md │ ├── 2009-11-23-new-doctrine-core-team-member.md │ ├── 2010-12-04-doctrine2-rc1.md │ ├── 2010-03-29-doctrine-1-2-2-released.md │ ├── 2009-11-16-doctrine-1-2-0-beta3-released.md │ ├── 2011-03-05-doctrine-maintenance-mar05.md │ ├── 2011-08-26-doctrine2-1-1.md │ ├── 2016-01-05-orm-2-5-4.md │ ├── 2013-05-11-doctrine-2-3-4.md │ ├── 2008-08-08-creating-a-unit-of-work-using-doctrine.md │ ├── 2009-11-23-doctrine-1-2-0-rc1-released.md │ ├── 2008-06-21-doctrine-in-your-language.md │ ├── 2009-07-27-doctrine-1-0-11-and-1-1-3-released.md │ ├── 2008-08-05-doctrine-1-0-beta1-released.md │ ├── 2012-05-28-doctrine-2-1-7-released.md │ ├── 2008-02-18-doctrine-orm-sandbox.md │ ├── 2008-06-11-one-more-0-11-release-candidate.md │ ├── 2014-10-16-dbal-243.md │ ├── 2009-09-25-doctrine-1-0-12-and-1-1-4-released.md │ ├── 2009-06-16-doctrine-changing-homes.md │ ├── 2012-12-05-doctrine-2-3-1.md │ ├── 2014-09-23-orm-245.md │ ├── 2014-12-20-annotations-123.md │ ├── 2014-09-11-orm-244.md │ ├── 2010-03-15-doctrine-2-at-confoo-2010.md │ ├── 2025-07-01-doctrine-core-team-meetup-paris25.md │ ├── 2009-03-03-doctrine-1-1-documentation.md │ ├── 2009-11-04-doctrine-1-2-documentation-available.md │ ├── 2015-04-14-annotations-1-2-4.md │ ├── 2011-04-07-doctrine2-april-2011-maintenance.md │ ├── 2012-04-13-doctrine-2-2-2-released.md │ ├── 2011-01-30-doctrine-maintenance-jan2011.md │ ├── 2014-09-15-dbal-235.md │ ├── 2008-07-12-doctrine-0-11-1-and-1-0.md │ ├── 2021-11-11-dbal3-vulnerability-fixed.md │ ├── 2015-09-16-doctrine_dbal_2_5_2_released.md │ ├── 2009-06-24-thank-you-servergrove.md │ ├── 2013-11-12-doctrine-2-4-1.md │ ├── 2015-03-22-migrations-1-0-0-alpha-3.md │ ├── 2008-12-11-double-dose-of-doctrine.md │ ├── 2009-10-05-second-alpha-release-of-doctrine-2.md │ ├── 2011-09-25-doctrine-maintenance-sep2011.md │ ├── 2009-10-06-doctrine-1-2-nearing-stable-release.md │ ├── 2014-10-06-orm-246.md │ ├── 2011-05-14-doctrine-maintenance-may11.md │ ├── 2009-06-30-doctrine-orm-for-php-available-in-print.md │ ├── 2017-12-21-orm-2-6-0-and-next.md │ ├── 2009-06-15-sensio-labs-training-sessions.md │ ├── 2011-08-29-dbal-security-2011-1.md │ ├── 2009-01-15-documentation-updates.md │ ├── 2011-08-17-doctrine-2-0-7-and-eol.md │ ├── 2014-12-18-annotations-122.md │ ├── 2008-06-13-php-net-style-api-documentation-lookups.md │ ├── 2011-11-21-doctrine-maintenance-nov2011.md │ ├── 2008-08-25-pre-1-0-updates-and-1-0-0-rc1-released.md │ ├── 2014-02-08-orm-235-234.md │ ├── 2015-12-25-dbal-2-5-3.md │ ├── 2008-06-23-introducing-the-doctrine-cookbook.md │ ├── 2009-06-15-doctrine-1-0-10-and-1-1-2-released.md │ ├── 2024-01-30-archiving-unmaintained-packages.md │ ├── 2008-12-03-first-1-1-alpha-version-released.md │ ├── 2012-05-29-symfony-live-2012-hackday.md │ ├── 2008-07-20-doctrine-gets-its-first-employee.md │ ├── 2009-01-12-doctrine-1-1-is-right-around-the-corner.md │ ├── 2010-11-18-common-rc2-dbal-rc2-release.md │ ├── 2012-01-22-dbal-orm-22rc1.md │ ├── 2008-09-30-get-expert-training.md │ └── 2008-05-03-website-upgraded-to-symfony-1-1-and-doctrine-0-11.md ├── sitemap.xml ├── policies │ └── releases.rst ├── archive.html ├── policies.rst ├── js │ └── index.js ├── atom.xml ├── 404.html ├── styleguide.html ├── blog.html ├── logos │ └── doctrine-logo.svg └── partners.html ├── templates ├── guides │ ├── body │ │ ├── directive │ │ │ ├── tocheader.html.twig │ │ │ └── toc.html.twig │ │ ├── menu │ │ │ ├── menu.html.twig │ │ │ └── menu-item.html.twig │ │ ├── author.html.twig │ │ ├── version-change.html.twig │ │ ├── code.html.twig │ │ └── admonition.html.twig │ ├── structure │ │ ├── header-title.html.twig │ │ └── document.html.twig │ └── website-document.html.twig ├── carbonad-standard.html.twig ├── layouts │ ├── default.html.twig │ └── blog-list.html.twig ├── alert.html.twig ├── project-status-alert.html.twig ├── breadcrumbs.html.twig ├── projects-list.html.twig └── search-results.html.twig ├── CONTRIBUTING.md ├── lib ├── DataSources │ ├── DbPrefill │ │ ├── DbPrefill.php │ │ └── SimpleSource.php │ ├── DataSource.php │ ├── ArrayDataSource.php │ ├── SitemapPages.php │ └── BlogPosts.php ├── StaticGenerator │ ├── Request │ │ ├── RequestCollection.php │ │ ├── ArrayRequestCollection.php │ │ └── RequestCollectionProvider.php │ ├── Twig │ │ ├── TwigRenderer.php │ │ └── StringTwigRenderer.php │ ├── SourceFile │ │ ├── SourceFileReader.php │ │ ├── SourceFileConverter.php │ │ ├── SourceFiles.php │ │ ├── SourceFileRepository.php │ │ ├── SourceFileParameters.php │ │ └── SourceFileParametersFactory.php │ └── Controller │ │ ├── ResponseFactory.php │ │ ├── Response.php │ │ └── ControllerProvider.php ├── Repositories │ ├── DoctrineUserRepository.php │ ├── SitemapPageRepository.php │ ├── PartnerRepository.php │ └── BlogPostRepository.php ├── Docs │ └── RST │ │ ├── DocumentsBuilder.php │ │ └── RSTLanguage.php ├── Controllers │ ├── SitemapController.php │ ├── AtomController.php │ ├── DocumentationController.php │ ├── PartnersController.php │ └── BlogController.php ├── Projects │ ├── ProjectDataRepository.php │ ├── GetTotalDownloads.php │ └── GetProjectPackagistData.php ├── Model │ ├── DoctrineUser.php │ ├── PartnerDetails.php │ ├── ProjectIntegrationType.php │ └── SitemapPage.php ├── Guides │ ├── DependencyInjection │ │ └── ThemeCompilerPass.php │ └── ReferenceResolver │ │ └── HtmlResolver.php ├── Site.php ├── ProcessFactory.php └── Requests │ ├── PartnerRequests.php │ ├── ProjectRequests.php │ └── ProjectVersionRequests.php ├── jest.config.js ├── .github ├── workflows │ ├── static-analysis.yml │ ├── coding-standards.yml │ ├── deployment-staging.yml │ ├── search-index.yml │ ├── deployment-prod.yml │ ├── js-tests.yml │ └── js-analysis.yml └── dependabot.yml ├── .gitignore ├── pre-commit ├── phpcs.xml.dist ├── bin └── console ├── phpunit.xml.dist ├── phpstan.neon.dist └── LICENSE /doctrine: -------------------------------------------------------------------------------- 1 | bin/console -------------------------------------------------------------------------------- /tests/source/api/orm.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/source/api/inflector.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/source/projects/doctrine-orm.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/source/projects/doctrine-inflector.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test-projects/empty-json/composer.json: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/source/css/style.css: -------------------------------------------------------------------------------- 1 | .test { color: black; } 2 | -------------------------------------------------------------------------------- /tests/.webpack-build/css/style.css: -------------------------------------------------------------------------------- 1 | .webpack { color: #fa6a3c; } 2 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "@babel/preset-env" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /config/config_dev.yml: -------------------------------------------------------------------------------- 1 | imports: 2 | - config.yml 3 | 4 | parameters: [] 5 | -------------------------------------------------------------------------------- /jest/setup/jest.js: -------------------------------------------------------------------------------- 1 | import $ from 'jquery'; 2 | global.$ = global.jQuery = $; 3 | -------------------------------------------------------------------------------- /source/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doctrine/doctrine-website/HEAD/source/favicon.ico -------------------------------------------------------------------------------- /tests/test-projects/test-project/.doctrine-project.json: -------------------------------------------------------------------------------- 1 | { 2 | "shortName": "test" 3 | } 4 | -------------------------------------------------------------------------------- /source/doctrine1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doctrine/doctrine-website/HEAD/source/doctrine1.zip -------------------------------------------------------------------------------- /source/images/og.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doctrine/doctrine-website/HEAD/source/images/og.png -------------------------------------------------------------------------------- /tests/test-projects/invalid-project-json/.doctrine-project.json: -------------------------------------------------------------------------------- 1 | { 2 | invalid": invalid 3 | } 4 | -------------------------------------------------------------------------------- /tests/test-projects/test-project/docs/index.rst: -------------------------------------------------------------------------------- 1 | Test Project 2 | ============ 3 | 4 | Test Project 5 | -------------------------------------------------------------------------------- /source/images/jwage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doctrine/doctrine-website/HEAD/source/images/jwage.png -------------------------------------------------------------------------------- /source/images/marco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doctrine/doctrine-website/HEAD/source/images/marco.png -------------------------------------------------------------------------------- /source/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doctrine/doctrine-website/HEAD/source/images/favicon.ico -------------------------------------------------------------------------------- /templates/guides/body/directive/tocheader.html.twig: -------------------------------------------------------------------------------- 1 |
{{ node.getOption('caption') }}
4 | {% endif -%} 5 | {% include "body/menu/menu-level.html.twig" %} 6 | 7 | -------------------------------------------------------------------------------- /source/blog/2010-08-24-doctrine-orm-version-1-2-3-released.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine ORM Version 1.2.3 Released" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2010/08/24/doctrine-orm-version-1-2-3-released.html 7 | --- 8 | 9 | -------------------------------------------------------------------------------- /templates/guides/body/author.html.twig: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /templates/guides/structure/header-title.html.twig: -------------------------------------------------------------------------------- 1 || 5 | 6 | | 7 |{{ alertMessage|raw }} |
8 |
9 | 10 | Doctrine has been used by many symfony developers for nearly two years 11 | as an externally maintained plugin. This week it became official and 12 | Doctrine will be bundled and supported by the symfony core team as of 13 | version 1.2 which is slated for late Q4 2008. You can read the full blog 14 | article on the symfony-project.org blog. 15 | 16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /source/blog/2008-07-24-taking-advantage-of-column-aggregation-inheritance.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Taking Advantage of Column Aggregation Inheritance" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [] 6 | permalink: /2008/07/24/taking-advantage-of-column-aggregation-inheritance.html 7 | --- 8 | Today I have published another tutorial in the 1.0 Cookbook. This recipe 9 | solves the same situation where you want to allow address properties on 10 | multiple records. This approach is a much more normalized implementation 11 | compared to using templates/behaviors and it allows for multiple 12 | addresses instead of only one. Check it out in the cookbook here. Enjoy! 13 | -------------------------------------------------------------------------------- /lib/StaticGenerator/SourceFile/SourceFiles.php: -------------------------------------------------------------------------------- 1 | */ 12 | class SourceFiles extends ArrayCollection 13 | { 14 | /** @return SourceFiles9 | 10 | Last October 2007 we implemented some google analytics to our website to 11 | monitor the growth of the community. Today the traffic has about doubled 12 | since then. We average around 1000 unique visitors per day up from 13 | around 300 roughly 1 year ago. We expect the growth to continue and we 14 | look forward what milestones we can reach together in the future. Check 15 | out the graph of absolute unique visitors from google analytics below. 16 | 17 |
18 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/phpunit-build-all.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |{{ node.versionLabel }}
4 | {% if (node.value) %} 5 |{{ node.versionLabel }}
13 | {% if (node.value) %} 14 |9 | 10 | The Doctrine development team are pleased to announce the release of a 11 | coverage report system. Special things to meus and romanb for thier work 12 | in this area. 13 | 14 |
15 | 16 |17 | 18 | The report can be seen at 19 | [http://doctrine.pengus.net/doctrine/trunk/tests/coverage/index.php](http://doctrine.pengus.net/doctrine/trunk/tests/coverage/index.php). 20 | This new report will help to ensure that the Doctrine code is well 21 | tested, ensuring that the upcomming doctrine version 1 release is well 22 | tested and stable. 23 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/Projects/GetTotalDownloads.php: -------------------------------------------------------------------------------- 1 | $projectRepository */ 13 | public function __construct( 14 | private ProjectRepository $projectRepository, 15 | ) { 16 | } 17 | 18 | public function __invoke(): int 19 | { 20 | $totalDownloads = 0; 21 | 22 | foreach ($this->projectRepository->findAll() as $project) { 23 | $totalDownloads += $project->getProjectStats()->getTotalDownloads(); 24 | } 25 | 26 | return $totalDownloads; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /source/blog/2011-06-17-doctrine-2-0-6.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 2.0.6 DBAL and ORM Releases" 3 | authorName: beberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2011/06/17/doctrine-2-0-6.html 7 | --- 8 | On wednesday we released Doctrine 2.0.6 of DBAL and ORM. Both versions 9 | include some bugfixes, DBAL for identifier quoting with MSSQL and issues 10 | with cascade remove, inheritance and the XML driver for the ORM. 11 | 12 | See the changelogs for more details: 13 | 14 | - [ORM](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10140) 15 | - [DBAL](https://www.doctrine-project.org/jira/browse/DBAL/fixforversion/10141) 16 | 17 | Grab the download from our [PEAR 18 | Channel](http://pear.doctrine-project.org) or from the download section 19 | of our website. 20 | -------------------------------------------------------------------------------- /source/blog/2008-03-18-0-10-3-released.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "0.10.3 Released" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2008/03/18/0-10-3-released.html 7 | --- 8 | A few days late, but the 0.10.3 release has been packaged and released. 9 | This release contains nearly 40 closed tickets, and is a huge step 10 | towards bringing the 1st generation of Doctrine to a stable release. We 11 | have already begun development on the 0.10.4 release, and have a few 12 | dozen tickets associated to it already. If you have a ticket associated 13 | to the 0.10.4 milestone or any other release then it is likely their is 14 | not a failing test case for it, as the 0.10 branch now only has 1 15 | failing test case. Make our job easier and provide a failing test case 16 | for your issues. Thanks. 17 | -------------------------------------------------------------------------------- /source/blog/2009-11-10-doctrine-1-2-0-beta2-released.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 1.2.0-BETA2 Released" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2009/11/10/doctrine-1-2-0-beta2-released.html 7 | --- 8 | Today I am happy to bring you the second beta of the latest Doctrine 1.2 9 | version. This is a solid bug fix release and we're getting very close to 10 | a stable 1.2 version of Doctrine! It is recommended that you upgrade and 11 | [report](https://www.doctrine-project.org/jira) any issues in 12 | [Jira](https://www.doctrine-project.org/jira) to help us test for 13 | regressions between 1.1 and 1.2. 14 | 15 | Take a look at the 16 | [changelog](https://www.doctrine-project.org/change_log/1_2_0_BETA2) and 17 | try it out by [downloading](https://www.doctrine-project.org) it. 18 | -------------------------------------------------------------------------------- /tests/DataSources/ArrayDataSourceTest.php: -------------------------------------------------------------------------------- 1 | 'Symfony', 17 | 'url' => 'https://symfony.com', 18 | ], 19 | [ 20 | 'name' => 'Laravel', 21 | 'url' => 'https://laravel.com', 22 | ], 23 | ]; 24 | 25 | $dataSource = new ArrayDataSource($rows); 26 | 27 | self::assertEquals($rows, $dataSource->getSourceRows()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /source/blog/2009-11-23-new-doctrine-core-team-member.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "New Doctrine Core Team Member" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [] 6 | permalink: /2009/11/23/new-doctrine-core-team-member.html 7 | --- 8 | Today I am very excited to announce to you all that we have officially 9 | invited Benjamin Eberlei, also known as beberlei in IRC, to join the 10 | core Doctrine team. He has steadily contributed to Doctrine 2 and has 11 | been very helpful. We are confident that he will be a great new addition 12 | to the team. 13 | 14 | Benjamin is a contributor to the Zend Framework as well so he will be 15 | responsible for leading the integration between the projects. You can 16 | read a little more about Benjamin on his [about 17 | page](https://www.doctrine-project.org/contributor/beberlei). 18 | -------------------------------------------------------------------------------- /source/blog/2010-12-04-doctrine2-rc1.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine ORM RC1 released" 3 | authorName: beberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2010/12/04/doctrine2-rc1.html 7 | --- 8 | We are pleased to announce the immediate availability of the first 9 | Release Candidate of the Doctrine ORM. Over 2 years of dedicated 10 | development will soon lead to the final release. If no non-trival bugs 11 | are reported in the period of the next 1-2 weeks this release candidate 12 | will serve as basis for the final release. 13 | 14 | For this release candidate over 70 tickets were closed. See the 15 | changelog for a detailed overview: 16 | 17 | - [Changelog](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10091) 18 | 19 | We want to thank everybody for their contributions and help. 20 | -------------------------------------------------------------------------------- /tests/test-cache/data/blog_posts.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "url": "/1.html", 4 | "slug": "one", 5 | "title": "One", 6 | "authorName": "me", 7 | "authorEmail": "", 8 | "contents": "Doctrine Blog 1", 9 | "date": "2023-09-18 00:00:00" 10 | }, 11 | { 12 | "url": "/2.html", 13 | "slug": "two", 14 | "title": "Two", 15 | "authorName": "you", 16 | "authorEmail": "", 17 | "contents": "Doctrine Blog 2", 18 | "date": "2023-10-29 00:00:00" 19 | }, 20 | { 21 | "url": "/3.html", 22 | "slug": "three", 23 | "title": "Three", 24 | "authorName": "we", 25 | "authorEmail": "", 26 | "contents": "Doctrine Blog 3", 27 | "date": "2009-12-31 00:00:00" 28 | } 29 | ] 30 | -------------------------------------------------------------------------------- /lib/StaticGenerator/SourceFile/SourceFileRepository.php: -------------------------------------------------------------------------------- 1 | sourceFileReaders as $sourceFileReader) { 19 | foreach ($sourceFileReader->getSourceFiles($buildDir) as $sourceFile) { 20 | $sourceFiles[] = $sourceFile; 21 | } 22 | } 23 | 24 | return new SourceFiles($sourceFiles); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /source/blog/2010-03-29-doctrine-1-2-2-released.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 1.2.2 Released" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2010/03/29/doctrine-1-2-2-released.html 7 | --- 8 | Today I am happy to bring you the second maintenance release for the 1.2 9 | version of Doctrine. This release contains around 100 fixed issues from 10 | [Jira](https://www.doctrine-project.org/jira/browse/DC/fixforversion/10047). 11 | We will continue regularly creating maintenance releases for the 12 | Doctrine 1.2 version so if you have any problems, please create a issue 13 | on Jira, include a patch with tests and we'll try and include it in the 14 | next version. 15 | 16 | As always you can find information about this new version on the 17 | [download](https://www.doctrine-project.org/download) page. 18 | -------------------------------------------------------------------------------- /source/blog/2009-11-16-doctrine-1-2-0-beta3-released.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 1.2.0 BETA3 Released" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2009/11/16/doctrine-1-2-0-beta3-released.html 7 | --- 8 | We're getting very close to a stable Doctrine 1.2 with the latest BETA3 9 | being released today. This will most likely be the last beta release 10 | before our first release candidate next week. If everything goes as 11 | planned we will have a stable release hopefully a little before the end 12 | of November. 13 | 14 | You can view the [change 15 | log](https://www.doctrine-project.org/change_log/1_2_0_BETA3) or 16 | [download](https://www.doctrine-project.org/download#1_2) this release 17 | now. If you find any issues please open tickets in 18 | [Jira](https://www.doctrine-project.org/jira). 19 | -------------------------------------------------------------------------------- /source/blog/2011-03-05-doctrine-maintenance-mar05.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Maintenance Releases 2.0.2 DBAL and ORM" 3 | authorName: beberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2011/03/05/doctrine-maintenance-mar05.html 7 | --- 8 | Slightly delayed but here are the releases of DBAL and ORM versions 9 | 2.0.2: 10 | 11 | - [ORM 2.0.2 12 | Changeset](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10116) 13 | - [DBAL 2.0.2 14 | Changeset](https://www.doctrine-project.org/jira/browse/DBAL/fixforversion/10118) 15 | 16 | A total of 22 issues was fixed. 17 | 18 | There was one big change in the build mechanism. Symfony YAML and 19 | Console dependencies are now converted to git submodules and are also 20 | shipped as their own PEAR packages (DoctrineSymfonyYaml and 21 | DoctrineSymfonyConsole). 22 | -------------------------------------------------------------------------------- /source/blog/2011-08-26-doctrine2-1-1.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "DBAL and ORM 2.1.1 maintenance releases" 3 | authorName: beberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2011/08/26/doctrine2-1-1.html 7 | --- 8 | We released the DBAL and ORM 2.1.1 maintenance versions today that 9 | several issues with both packages. You can see the changelog of both 10 | packages on Jira: 11 | 12 | - [ORM Changelog (22 issues 13 | fixed)](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10153) 14 | - [DBAL Changelog (4 issues 15 | fixed)](https://www.doctrine-project.org/jira/browse/DBAL/fixforversion/10156) 16 | 17 | Please report any problems with these packages to the Jira tracker or 18 | the mailing list. 19 | 20 | You can download the packages through PEAR or our download sections 21 | within each project. 22 | -------------------------------------------------------------------------------- /templates/guides/body/menu/menu-item.html.twig: -------------------------------------------------------------------------------- 1 |9 | 10 | Today I am happy to announce the release of Doctrine 1.0-BETA1. This 11 | marks the true start for the 1st generation Doctrine stable lifecycle. 12 | As you may already know, Doctrine 1.0 has been slated to be released on 13 | September 1st 2008 for quite some time now. We still have a few more 14 | pre-1.0 releases to go until 1.0. The roadmap for now is BETA1, RC1, RC2 15 | and then 1.0 STABLE. You can see the roadmap in trac if you're 16 | interested in keeping up with the Doctrine schedule. More information on 17 | 1.0 and what other things to expect on September 1st will be given soon. 18 | Make some noise! 19 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /source/blog/2012-05-28-doctrine-2-1-7-released.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 2.1.7 released" 3 | authorName: beberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2012/05/28/doctrine-2-1-7-released.html 7 | --- 8 | We released version 2.1.7 of the Doctrine ORM and DBAL today, fixing a 9 | total of 18 bugs. 10 | 11 | - [ORM 12 | Changelog](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10198) 13 | - [DBAL 14 | Changelog](https://www.doctrine-project.org/jira/browse/DBAL/fixforversion/10200) 15 | 16 | You can install the release through 17 | [Github](https://github.com/doctrine/orm) , 18 | [PEAR](http://pear.doctrine-project.org) , download from the website or 19 | through [Composer](https://packagist.org): 20 | 21 | ~~~~ {.sourceCode .yaml} 22 | { 23 | "require": 24 | { 25 | "doctrine/orm": "2.1.7" 26 | } 27 | } 28 | ~~~~ 29 | -------------------------------------------------------------------------------- /.github/workflows/js-analysis.yml: -------------------------------------------------------------------------------- 1 | name: "JS Analysis tools" 2 | 3 | on: 4 | push: 5 | paths: 6 | - '**.js' 7 | - '**.scss' 8 | - 'package.json' 9 | - 'yarn.lock' 10 | - '.github/workflows/js-analysis.yml' 11 | pull_request: 12 | paths: 13 | - '**.js' 14 | - '**.scss' 15 | - 'package.json' 16 | - 'yarn.lock' 17 | - '.github/workflows/js-analysis.yml' 18 | 19 | jobs: 20 | code-analysis: 21 | 22 | runs-on: "ubuntu-latest" 23 | 24 | steps: 25 | - uses: "actions/checkout@v6" 26 | 27 | - name: "Installation of node" 28 | uses: "actions/setup-node@v6" 29 | with: 30 | node-version: '22' 31 | 32 | - name: "yarn install" 33 | run: "yarn install" 34 | 35 | - name: "Run webpack" 36 | run: "yarn dev" 37 | 38 | - name: "Prettier" 39 | run: "yarn prettier-check" 40 | -------------------------------------------------------------------------------- /source/atom.xml: -------------------------------------------------------------------------------- 1 | 2 |The page you are looking for could not be found. Take a look at one of the pages below instead.
17 |Looking for the not maintained Doctrine 1 documentation? You can download it here
18 | 19 || 22 | | Orange #fa6a3c | 23 |
|---|---|
| 26 | | Light Blue #2e6bc8 | 27 |
| 30 | | Dark Blue #1f2e4b | 31 |
13 | Posted on
9 | 10 | Today we have released a new version, 0.11.1. As with all point releases 11 | it is a bug fix only release. With over 81 tickets closed, this is 12 | definetly a significant release for Doctrine towards 1.0. We recommend 13 | that you upgrade. 14 | 15 |
16 | 17 | We have also created the 1.0 branch and will begin actively working on 18 | it. We have hit the final straight away towards 1.0! This was originally 19 | slated to be the 0.12 branch but we feel it is ready and we will spend 20 | the next 2 months furiously working on tickets before we release it on 21 | September 1st. We will have some short intermediate BETA and RC releases 22 | before then but these will primarily be bug fix releases only. Make some 23 | hype please, thanks. ;) 24 | 25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/Model/SitemapPageTest.php: -------------------------------------------------------------------------------- 1 | url, $this->sitemapPage->getUrl()); 22 | } 23 | 24 | public function testGetDate(): void 25 | { 26 | self::assertSame($this->date, $this->sitemapPage->getDate()); 27 | } 28 | 29 | protected function setUp(): void 30 | { 31 | $this->url = '/test.html'; 32 | $this->date = new DateTimeImmutable(); 33 | 34 | $this->sitemapPage = new SitemapPage( 35 | $this->url, 36 | $this->date, 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /source/blog/2021-11-11-dbal3-vulnerability-fixed.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "DBAL 3 SQL Injection Security Vulnerability fixed (CVE-2021-43608)" 3 | authorName: Benjamin Eberlei 4 | authorEmail: kontakt@beberlei.de 5 | permalink: /2021/11/11/dbal3-vulnerability-fixed.html 6 | --- 7 | 8 | We have released a new version Doctrine DBAL 3.1.4 that fixes a critical SQL 9 | injection vulnerability in the LIMIT clause generation API provided by the 10 | Platform abstraction. 11 | 12 | We advise everyone using Doctrine DBAL 3.0.0 up to 3.1.3 to upgrade to 3.1.4 13 | immediately. 14 | 15 | The vulnerability can happen when unsanitized input is passed to many APIs in 16 | Doctrine DBAL and ORM that ultimately end up calling 17 | `AbstractPlatform::modifyLimitQuery`. 18 | 19 | As a workaround you can cast all limit and offset parameters to integers before 20 | passing them to Doctrine APIs. 21 | 22 | This vulnerability has been assigned 23 | [CVE-2021-43608](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-43608). 24 | -------------------------------------------------------------------------------- /source/blog/2015-09-16-doctrine_dbal_2_5_2_released.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine DBAL 2.5.2 released" 3 | authorName: Steve Müller 4 | authorEmail: deeky666@googlemail.com 5 | categories: [] 6 | permalink: /2015/09/16/doctrine_dbal_2_5_2_released.html 7 | --- 8 | We are happy to announce the immediate availability of Doctrine DBAL 9 | 2.5.2. 10 | 11 | This version fixes a regression where dropping a database on PostgreSQL 12 | didn't work properly anymore as well as several other issues. 13 | 14 | You can find all the changes on JIRA: 15 | 16 | - [DBAL 17 | 2.5.2](https://www.doctrine-project.org/jira/browse/DBAL/fixforversion/10731) 18 | - 24 issues fixed 19 | 20 | You can install the DBAL using Composer and the following 21 | `composer.json` contents: 22 | 23 | ```json 24 | { 25 | "require": { 26 | "doctrine/dbal": "2.5.2" 27 | } 28 | } 29 | ``` 30 | 31 | Please report any issues you may have with the update on the mailing 32 | list or on [Jira](https://www.doctrine-project.org/jira). 33 | -------------------------------------------------------------------------------- /lib/DataSources/DbPrefill/SimpleSource.php: -------------------------------------------------------------------------------- 1 | dataSource->getSourceRows() as $sourceRow) { 20 | $entity = $this->createObject($sourceRow); 21 | $this->entityManager->persist($entity); 22 | } 23 | 24 | $this->entityManager->flush(); 25 | } 26 | 27 | /** @param mixed[] $data */ 28 | private function createObject(array $data): object 29 | { 30 | return new $this->modelClassName(...$data); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /source/blog/2009-06-24-thank-you-servergrove.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Thank you ServerGrove" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [] 6 | permalink: /2009/06/24/thank-you-servergrove.html 7 | --- 8 | As you all may know, we recently 9 | [moved](https://www.doctrine-project.org/2009/06/16/doctrine-changing-homes.html) 10 | the Doctrine infrastructure to a brand new home. This is all thanks to 11 | [ServerGrove](http://www.servergrove.net/). I contacted them a few 12 | months ago about potentially sponsoring us and they did not hesitate one 13 | bit. They were more than willing to setup a dedicated community server 14 | for us, free of charge. Within 48 hours of my e-mail I had a dedicated 15 | server ready to go. I had the server for about a month before I was able 16 | to make the move. They simply moved faster then I expected and have gone 17 | above and beyond anything I could have imagined. 18 | 19 | If you all need proper hosting support for your Symfony or Doctrine 20 | projects, I would highly recommend them. 21 | -------------------------------------------------------------------------------- /source/blog/2013-11-12-doctrine-2-4-1.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 2.4.1 released" 3 | authorName: Benjamin Eberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2013/11/12/doctrine-2-4-1.html 7 | --- 8 | Today we released Doctrine DBAL 2.4.1 and ORM 2.4.1 versions. It 9 | includes an important fix for a regression with array hydration. In 10 | total 6 tickets have been closed in both releases. 11 | 12 | See all the changes: 13 | 14 | - [Doctrine ORM v2.4.1 15 | Changelog](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10528) 16 | - [Doctrine DBAL v2.4.1 17 | Changelog](https://www.doctrine-project.org/jira/browse/DBAL/fixforversion/10527) 18 | 19 | Installation 20 | ============ 21 | 22 | You can install Doctrine using Composer and the following 23 | `composer.json` contents: 24 | 25 | ~~~~ {.sourceCode .json} 26 | { 27 | "require": { 28 | "doctrine/common": "2.4.*", 29 | "doctrine/dbal": "2.4.1", 30 | "doctrine/orm": "2.4.1" 31 | } 32 | } 33 | ~~~~ 34 | -------------------------------------------------------------------------------- /source/blog/2015-03-22-migrations-1-0-0-alpha-3.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine Migrations 1.0.0-alpha3 Pre-Release" 3 | authorName: Michael Simonson 4 | authorEmail: 5 | categories: [] 6 | permalink: /2015/03/22/migrations-1-0-0-alpha-3.html 7 | --- 8 | We are happy to announce the immediate availability Doctrine Migrations 9 | `1.0.0-alpha3`. 10 | 11 | This is a pre-release meant to allow users and contributors to try out 12 | the new upcoming features of the migrations. 13 | 14 | We encourage all of our users to help us by trying out this alpha 15 | release. Please report any possible problems or incompatibilities that 16 | may have been introduced during development. 17 | 18 | What is new in 1.0.x? 19 | ===================== 20 | 21 | You can find the current state of the 1.0.0 changes overview in [the 22 | upgrade 23 | notes](https://github.com/doctrine/migrations/blob/master/UPGRADE-1.0.MD). 24 | 25 | Please report any issues you may have with the update on 26 | [Github](https://github.com/doctrine/migrations/issues). 27 | -------------------------------------------------------------------------------- /lib/Model/SitemapPage.php: -------------------------------------------------------------------------------- 1 | date = $date; 25 | 26 | return; 27 | } 28 | 29 | $this->date = new DateTimeImmutable(); 30 | } 31 | 32 | public function getUrl(): string 33 | { 34 | return $this->url; 35 | } 36 | 37 | public function getDate(): DateTimeImmutable 38 | { 39 | return $this->date; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /source/blog/2008-12-11-double-dose-of-doctrine.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Double Dose of Doctrine" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [] 6 | permalink: /2008/12/11/double-dose-of-doctrine.html 7 | --- 8 | Today I am happy to introduce two new versions of Doctrine! We have made 9 | available yet another maintenance release for the 1.0 version, 10 | [1.0.5](https://www.doctrine-project.org/download). This release contains 11 | dozens of fixes that are logged 12 | [here](https://www.doctrine-project.org/change_log/1_0_5). In addition to 13 | the monthly 1.0.x maintenance release, we have made available the [first 14 | beta of the 1.1](https://www.doctrine-project.org/download) development 15 | branch of Doctrine. 16 | 17 | This is exciting news because this means we are very close to releasing 18 | a stable version. We just need to work out the last final kinks and we 19 | need your help to do it. You can read about what has changed in the 20 | [upgrade to 1.1 21 | file](http://svn.doctrine-project.org/branches/1.1/UPGRADE_TO_1_1). 22 | -------------------------------------------------------------------------------- /source/blog/2009-10-05-second-alpha-release-of-doctrine-2.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Second Alpha Release of Doctrine 2" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2009/10/05/second-alpha-release-of-doctrine-2.html 7 | --- 8 | Today we are happy to bring you the second alpha release of the brand 9 | new Doctrine 2! This release contains about 70 fixes since the first 10 | alpha release last month! This is great news as it means Doctrine 2 is 11 | becoming more and more stable! 12 | 13 | Highlights 14 | ========== 15 | 16 | Below are some highlights for the release. 17 | 18 | - CLI refactorings and improvements 19 | - Fixes to Mapping information drivers 20 | - Fixes to ClassMetadata export drivers 21 | - Lots of other bug fixes 22 | 23 | If you're curious about what all was committed in this release you can 24 | check the [change 25 | log](https://www.doctrine-project.org/change_log/2_0_0_ALPHA2) page and 26 | you can snag the packages from the 27 | [download](https://www.doctrine-project.org/download) page. 28 | -------------------------------------------------------------------------------- /source/blog/2011-09-25-doctrine-maintenance-sep2011.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Maintenance 2.1 Releases for Common, DBAL and ORM and DBAL 2.0.9" 3 | authorName: beberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2011/09/25/doctrine-maintenance-sep2011.html 7 | --- 8 | We have released the maintenance versions Common 2.1.2, DBAL 2.1.3 and 9 | ORM 2.1.2. 10 | 11 | - [Common 2.1.2 12 | Changelog](https://www.doctrine-project.org/jira/browse/DCOM/fixforversion/10161) 13 | - [DBAL 2.1.3 14 | Changelog](https://www.doctrine-project.org/jira/browse/DBAL/fixforversion/10162) 15 | - [ORM 2.1.2 16 | Changelog](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10154) 17 | 18 | A total of 20 bugs have been fixed in all 3 components. The DBAL release 19 | contains a security fix for the Oracle driver fixing [a possible SQL 20 | injection issue](https://github.com/doctrine/dbal/issues/1321). 21 | If you are using Oracle please update immediately. This security fix was 22 | backported to 2.0 and a new 2.0.9 version was released. 23 | -------------------------------------------------------------------------------- /source/logos/doctrine-logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/blog/2009-10-06-doctrine-1-2-nearing-stable-release.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 1.2 Nearing Stable Release" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2009/10/06/doctrine-1-2-nearing-stable-release.html 7 | --- 8 | Today I am happy to release to you the second ALPHA release of Doctrine 9 | 1.2. Honestly, we didn't receive many reports of regressions or problems 10 | with the new things in Doctrine 1.2 and we know lots of people have 11 | upgraded and using it so we feel it is a pretty stable release already. 12 | 13 | You can view what all changed in this release by checking the 14 | [changelog](https://www.doctrine-project.org/change_log/1_2_0_ALPHA2) and 15 | you can snag it from the 16 | [download](https://www.doctrine-project.org/download) page. 17 | 18 | We hope that everything goes fine from here and the next release will be 19 | BETA1 followed by an RC and stable release. Please give 1.2 a try and 20 | report any regressions to us so that we can be sure to get them fixed 21 | before the final stable release. 22 | -------------------------------------------------------------------------------- /lib/Requests/PartnerRequests.php: -------------------------------------------------------------------------------- 1 | $partnerRepository */ 15 | public function __construct( 16 | private PartnerRepository $partnerRepository, 17 | ) { 18 | } 19 | 20 | public function getPartners(): RequestCollection 21 | { 22 | /** @var Partner[] $partners */ 23 | $partners = $this->partnerRepository->findAll(); 24 | 25 | $requests = []; 26 | 27 | foreach ($partners as $partner) { 28 | $requests[] = [ 29 | 'slug' => $partner->getSlug(), 30 | ]; 31 | } 32 | 33 | return new ArrayRequestCollection($requests); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/Requests/ProjectRequests.php: -------------------------------------------------------------------------------- 1 | $projectRepository */ 15 | public function __construct( 16 | private ProjectRepository $projectRepository, 17 | ) { 18 | } 19 | 20 | public function getProjects(): RequestCollection 21 | { 22 | /** @var Project[] $projects */ 23 | $projects = $this->projectRepository->findAll(); 24 | 25 | $requests = []; 26 | 27 | foreach ($projects as $project) { 28 | $requests[] = [ 29 | 'slug' => $project->getSlug(), 30 | ]; 31 | } 32 | 33 | return new ArrayRequestCollection($requests); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /source/blog/2014-10-06-orm-246.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "ORM 2.4.6 released" 3 | authorName: Marco Pivetta 4 | authorEmail: ocramius@gmail.com 5 | categories: [] 6 | permalink: /2014/10/06/orm-246.html 7 | --- 8 | We are happy to announce the immediate availability of Doctrine ORM 9 | 2.4.6. 10 | 11 | We fixed a PHP 5.6 compatibility issue which prevented usage of entities 12 | extending from internal PHP classes or implementing the `Serializable` 13 | interface with the ORM: 14 | [DDC-3120](https://github.com/doctrine/orm/issues/3897). 15 | 16 | You can find all the changes on JIRA: 17 | 18 | - [ORM 19 | 2.4.6](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10723) 20 | - 2 issues fixed 21 | 22 | You can install the ORM using Composer and the following `composer.json` 23 | contents: 24 | 25 | ~~~~ {.sourceCode .json} 26 | { 27 | "require": { 28 | "doctrine/orm": "2.4.6" 29 | } 30 | } 31 | ~~~~ 32 | 33 | Please report any issues you may have with the update on the mailing 34 | list or on [Jira](https://www.doctrine-project.org/jira). 35 | -------------------------------------------------------------------------------- /source/blog/2011-05-14-doctrine-maintenance-may11.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Maintenance Releases 2.0.5 for DBAL and ORM" 3 | authorName: beberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2011/05/14/doctrine-maintenance-may11.html 7 | --- 8 | Slightly behind schedule we released the next round of maintenance 9 | versions of Doctrine DBAL (2.0.5) and ORM (2.0.5) today. It also 10 | includes a Security fix for DBAL in combination with PDO MySQL and 11 | charsets that was closed in PHP 5.3.6. If you are using 5.3.6, you 12 | should now use the "charset" option in DriverManager::getConnection() 13 | instead of the MysqlSessionInit listener. 14 | 15 | - [DBAL Changelog (4 Tickets 16 | closed)](https://www.doctrine-project.org/jira/browse/DBAL/fixforversion/10132) 17 | - [ORM Changelog (15 Tickets 18 | closed)](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10133) 19 | 20 | You can grab the packages from the download page or our [Github 21 | repository](https://github.com/doctrine). 22 | 23 | Please report any problems to the Jira Bugtracker. 24 | -------------------------------------------------------------------------------- /source/blog/2009-06-30-doctrine-orm-for-php-available-in-print.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine ORM for PHP available in print" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [] 6 | permalink: /2009/06/30/doctrine-orm-for-php-available-in-print.html 7 | --- 8 | Last night the [Doctrine ORM for 9 | PHP](https://www.amazon.com/Doctrine-ORM-PHP-Jonathan-Wage/dp/2918390038/ref=sr_1_1?ie=UTF8&s=books&qid=1246303098&sr=8-1) 10 | book became available on the Amazon website. This is our first official 11 | piece of published documentation and we are very excited and proud to 12 | see this. 13 | 14 | If you are an existing or new Doctrine user, it is much appreciated if 15 | you purchase a copy. Since Doctrine is an open source project we don't 16 | make any money directly from it. Doctrine is all possible because of the 17 | contributors and the companies that fund it, like [Sensio 18 | Labs](https://sensiolabs.com). So it is a very nice gesture, even if 19 | you are already a Doctrine expert, to purchase a copy of the book to 20 | show your appreciation and support for the project. 21 | -------------------------------------------------------------------------------- /source/blog/2017-12-21-orm-2-6-0-and-next.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine ORM 2.6 and Next (3.0)" 3 | authorName: Mike Simonson 4 | authorEmail: mike@simonson.be 5 | categories: [] 6 | permalink: /2017/12/21/orm-2-6-0-and-next.html 7 | --- 8 | We are happy to announce the immediate availability of Doctrine ORM [2.6.0](https://github.com/doctrine/orm/releases/tag/v2.6.0). 9 | 10 | ORM 2.6.0 11 | ========= 12 | 13 | This release contains almost 3 years of active development and it 14 | provides several improvements and fixes, including: 15 | 16 | - Better commit order calculation 17 | - More stable second level cache 18 | - Strict testing and quality control 19 | - PHP 7.1+ requirement 20 | 21 | [changelog](https://github.com/doctrine/orm/releases/tag/v2.6.0). 22 | 23 | Next? 24 | ===== 25 | 26 | This release marks the feature freeze of the 2.x version. 27 | 28 | If you need to improve please work on the develop branch that will 29 | become the 3.0 branch in the coming days. The changes are already too 30 | numerous to easily rebase a feature from the 2.x branch to the develop 31 | one. 32 | -------------------------------------------------------------------------------- /templates/layouts/blog-list.html.twig: -------------------------------------------------------------------------------- 1 | {% extends 'layouts/layout.html.twig' %} 2 | 3 | {% block head_meta %} 4 | 13 | {% endblock %} 14 | 15 | {% block container %} 16 |{{ project.description }}
9 |4 | Doctrine Partners are businesses that offer software and/or services that complement Doctrine and can be used to level up your overall software development practices. If you are interested in becoming a partner, 5 | please contact us at partners@doctrine-project.org 6 |
7 | 8 | {% set batches = partners|batch(2) %} 9 | 10 | {% for batch in batches %} 11 |{{ partner.bio|truncate(150) }}
18 | 19 | View More 20 |9 | 10 | I have been using php.net style API lookups ever since I can remember. 11 | It is very nice being able to simply go to https://secure.php.net/array\_walk 12 | and have it pull up that function in the PHP API Documentation. So, 13 | tonight i have implemented this functionality in to the Doctrine 14 | website. Below are some examples of how you can quickly access the API 15 | docs for a specific function or class. 16 | 17 |
9 | 10 | Today we have a few updates for the project to announce. You can read 11 | about whats new below. 12 | 13 |
14 | 15 | Doctrine Release Candidate 1 Released 16 | 17 |
18 | 19 | The first release candidate of Doctrine 1.0 has been made available. 20 | Doctrine 1.0 is still scheduled to be released on September 1st 2008. 21 | You can download Doctrine here. 22 | 23 |
24 | 25 | New Domain! www.doctrine-project.org 26 | 27 |
28 | 29 | We have decided to ditch the old phpdoctrine.org domain in favor of 30 | doctrine-project.org. The main reason is due to licensing complications 31 | and us not being technically allowed to have the name PHP in our project 32 | name. 33 | 34 |
35 | 36 | Minor Website Ideas 37 | 38 |
39 | 40 | We have updated the website with some minor asthetic changes, primarily 41 | to the homepage. 42 | 43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /source/blog/2014-02-08-orm-235-234.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "ORM 2.4.2 and 2.3.5 released" 3 | authorName: Benjamin Eberlei 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2014/02/08/orm-235-234.html 7 | --- 8 | *Published: 08.02.2014* 9 | 10 | We are happy to announce the immediate availability of Doctrine ORM 11 | 2.3.5 and 2.4.2. Both versions fix 17 and 12 bugs respectively. 12 | 13 | You can find all the changes on JIRA: 14 | 15 | - [ORM 16 | 2.3.5](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10521) 17 | - 17 issues fixed 18 | - [ORM 19 | 2.4.2](https://www.doctrine-project.org/jira/browse/DDC/fixforversion/10621) 20 | 12 issues fixed 21 | 22 | You can install the ORM using Composer and the following `composer.json` 23 | contents: 24 | 25 | ~~~~ {.sourceCode .json} 26 | { 27 | "require": { 28 | "doctrine/orm": "2.4.2" 29 | } 30 | } 31 | ~~~~ 32 | 33 | ~~~~ {.sourceCode .json} 34 | { 35 | "require": { 36 | "doctrine/orm": "2.3.5" 37 | } 38 | } 39 | ~~~~ 40 | 41 | Please report any issues you may have with the update on the mailing 42 | list or on [Jira](https://www.doctrine-project.org/jira). 43 | -------------------------------------------------------------------------------- /source/blog/2015-12-25-dbal-2-5-3.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine DBAL 2.5.3 Released" 3 | authorName: Marco Pivetta 4 | authorEmail: ocramius@gmail.com 5 | categories: [release] 6 | permalink: /2015/12/25/dbal-2-5-3.html 7 | --- 8 | We are happy to announce the immediate availability of Doctrine DBAL 9 | [2.5.3](https://github.com/doctrine/dbal/releases/tag/v2.5.3). 10 | 11 | The SQLServer platform support for pagination query modification was 12 | completely rewritten, improving stability and code quality as well as 13 | ease of maintenance. 14 | [\#818](https://github.com/doctrine/dbal/issues/818) 15 | 16 | Dependency constraints on the 17 | [doctrine/common](https://github.com/doctrine/common) component 18 | supported versions were corrected, allowing users to install 19 | `doctrine/common` `2.6.*` together with the DBAL. 20 | [\#2268](https://github.com/doctrine/dbal/issues/2268) 21 | 22 | Installation 23 | ============ 24 | 25 | You can install the DBAL component using Composer: 26 | 27 | ```bash 28 | composer require doctrine/dbal:~2.5.3 29 | ``` 30 | 31 | Please report any issues you may have with the update on the [issue 32 | tracker](https://github.com/doctrine/dbal/issues). 33 | -------------------------------------------------------------------------------- /source/blog/2008-06-23-introducing-the-doctrine-cookbook.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Introducing the Doctrine Cookbook" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [] 6 | permalink: /2008/06/23/introducing-the-doctrine-cookbook.html 7 | --- 8 |9 | 10 | Today I would like to introduce something new to the Doctrine 11 | documentation, the Cookbook. This differs from the manual in that it 12 | will contain real world examples and tutorials of how you can use 13 | Doctrine on a daily basis whereas the manual is more of a technical 14 | breakdown of the features in Doctrine. We will be publishing many 15 | additions to the cookbook in the coming weeks. To start off we have 16 | published the following tutorials: 17 | 18 |
35 | 36 | If you are interested in contributing to the Doctrine documentation by 37 | adding new things or translations please contact me at 38 | [jonwage@gmail.com](mailto:jonwage@gmail.com). 39 | 40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /source/blog/2009-06-15-doctrine-1-0-10-and-1-1-2-released.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 1.0.10 and 1.1.2 Released" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [release] 6 | permalink: /2009/06/15/doctrine-1-0-10-and-1-1-2-released.html 7 | --- 8 | Today I am happy to release two new maintenance releases for Doctrine. 9 | As usual we have a new version for the 1.0 branch and a new version for 10 | the 1.1 branch. The new versions can be gotten on the 11 | [Download](https://www.doctrine-project.org/download) page. 12 | 13 | You can review the changelogs for 14 | [1.0.10](https://www.doctrine-project.org/change_log/1_0_10) and 15 | [1.1.2](https://www.doctrine-project.org/change_log/1_1_2) to see what 16 | all issues have been addressed in these releases. 17 | 18 | On a side note, development on the Doctrine 1.2 version will begin very 19 | soon so if you have any ideas or features you'd like to see in this 20 | version please bring them to our attention and we may be able to address 21 | them in this version. We plan for the 1.2 version to concentrate on bug 22 | fixes, performance fixes and small features to make the use of the 1.x 23 | version of Doctrine more enjoyable without any major BC breaks. 24 | -------------------------------------------------------------------------------- /templates/search-results.html.twig: -------------------------------------------------------------------------------- 1 | {% verbatim %} 2 | 3 |9 | 10 | 11 | {{{_highlightResult.h2.value}}} 12 | 13 | {{#h3}} 14 | > {{{_highlightResult.h3.value}}} 15 | {{/h3}} 16 | 17 | {{#h4}} 18 | > {{{_highlightResult.h4.value}}} 19 | {{/h4}} 20 | 21 | {{#h5}} 22 | > {{{_highlightResult.h5.value}}} 23 | {{/h5}} 24 |
25 | {{/h2}} 26 | 27 | {{#content}} 28 |9 | 10 | Starting in September 2008, I will begin working full-time on Doctrine! 11 | This great opportunity has been allowed by Sensio, the creators of the 12 | symfony MVC Framework. This arrangement will allow many great new things 13 | to happen for Doctrine. Below you will find a list of some of the things 14 | you can look forward to: 15 | 16 |
45 | 46 | This is also good news for the symfony project as it is due to 47 | officially support Doctrine as its primary ORM in future versions. I 48 | will also be helping the core symfony team with the official integration 49 | of Doctrine with sfDoctrinePlugin. 50 | 51 |
52 | 53 | 54 | -------------------------------------------------------------------------------- /source/blog/2009-01-12-doctrine-1-1-is-right-around-the-corner.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Doctrine 1.1 is right around the corner" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [] 6 | permalink: /2009/01/12/doctrine-1-1-is-right-around-the-corner.html 7 | --- 8 | 1.1 Release Manager 9 | =================== 10 | 11 | First, I would like to introduce **Guilherme Blanco** as the release 12 | manager of **Doctrine 1.1**. This means he will be responsible for 13 | organizing the tickets and managing the releases for the 1.1 branch from 14 | now on. So, if you have any issues you can yell at him :) 15 | 16 | 1.1 Release Candidate 17 | ===================== 18 | 19 | Another great thing today is that we have made available the first 20 | release candidate of the 1.1 branch. We were originally planning on 21 | having a third beta but as the amount of tickets that came in was 22 | practically none, we decided to move on to the release candidate stage. 23 | 24 | As always, you can [download 25 | here](https://www.doctrine-project.org/download) and check out the 26 | [change log](https://www.doctrine-project.org/change_log/1_1_0_RC1) and 27 | the [upgrade](https://www.doctrine-project.org/upgrade/1_1) document to 28 | find out what has changed in 1.1. 29 | -------------------------------------------------------------------------------- /templates/guides/body/code.html.twig: -------------------------------------------------------------------------------- 1 | {% set language = code_block_language(node.language, node.value) %} 2 | {% if language == "console" %} 3 |{{ node.value }}
5 | 15 | 23 |31 | {% endapply %} 32 | {%~ endif -%} 33 | -------------------------------------------------------------------------------- /lib/Docs/RST/RSTLanguage.php: -------------------------------------------------------------------------------- 1 | code; 32 | } 33 | 34 | public function getPath(): string 35 | { 36 | return $this->path; 37 | } 38 | 39 | public function setProjectVersion(ProjectVersion $version): void 40 | { 41 | $this->projectVersion = $version; 42 | } 43 | 44 | public function getProjectVersion(): ProjectVersion 45 | { 46 | return $this->projectVersion; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/StaticGenerator/SourceFile/SourceFileParametersFactory.php: -------------------------------------------------------------------------------- 1 | extractParameters($contents); 16 | 17 | if (! isset($parameters['layout'])) { 18 | $parameters['layout'] = 'default'; 19 | } 20 | 21 | if (! isset($parameters['title'])) { 22 | $parameters['title'] = ''; 23 | } 24 | 25 | return new SourceFileParameters($parameters); 26 | } 27 | 28 | /** @return mixed[] */ 29 | private function extractParameters(string $contents): array 30 | { 31 | $parameters = []; 32 | 33 | if (preg_match('/^\s*(?:---[\s]*[\r\n]+)(.*?)(?:---[\s]*[\r\n]+)(.*?)$/s', $contents, $matches) > 0) { 34 | if (preg_match('/^(\s*[-]+\s*|\s*)$/', $matches[1]) === 0) { 35 | $parameters = Yaml::parse($matches[1]); 36 | } 37 | } 38 | 39 | return $parameters; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /templates/guides/body/admonition.html.twig: -------------------------------------------------------------------------------- 1 | {% if name == 'important' %} 2 | {% endif %} 3 | {% if name == 'note' %} 4 | {% set admonitionClass='note' %} 5 | {% set textClass='text-primary' %} 6 | {% set icon='fa-sticky-note' %} 7 | {% endif %} 8 | {% if name == 'warning' or name == 'caution' %} 9 | {% set admonitionClass='warning' %} 10 | {% set textClass='text-warning' %} 11 | {% set icon='fa-exclamation-circle' %} 12 | {% endif %} 13 | {% if name == 'tip' or name == 'hint' %} 14 | {% endif %} 15 | {% if name == 'seealso' %} 16 | {% endif %} 17 |24 | {% endapply %} 25 | {%- for line in node.value | split("\n") -%} 26 |{{ line | highlight(language) }}27 | {%- endfor -%} 28 | {% apply spaceless %} 29 |30 |
| 22 | |
23 | {% if title and isTitled %} {{ renderNode(title) }} {% endif %} 24 | {% if title and not isTitled %}{{ renderNode(title) }} {% endif %} 25 | {{ renderNode(node) }} 26 | |
27 |
9 | 10 | Today I am happy to introduce the first training course offered on 11 | Doctrine 1.0. These courses are brought to you by SensioLabs, the 12 | creators of the symfony MVC Framework. In addition to the Doctrine 13 | courses they offer ones on symfony and PHP. Below is a list of some of 14 | the upcoming events that you can register for today! 15 | 16 |
33 | 34 | The workshops are a three day event and include lunch everyday, 35 | mid-morning and mid-afternoon snacks, a copy of all the presented 36 | material on a stick and example code. The workshop runs from 9am -5pm on 37 | the first 2 days and from 9am - 4:30pm on the last day. You can learn 38 | more about the available training sessions here. 39 | 40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /source/blog/2008-05-03-website-upgraded-to-symfony-1-1-and-doctrine-0-11.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Website upgraded to symfony 1.1 and Doctrine 0.11" 3 | authorName: jwage 4 | authorEmail: 5 | categories: [] 6 | permalink: /2008/05/03/website-upgraded-to-symfony-1-1-and-doctrine-0-11.html 7 | --- 8 |9 | 10 | Today I have upgraded the Doctrine website to symfony 1.1 and Doctrine 11 | 0.11. The integration between the symfony framework and Doctrine with 12 | sfDoctrinePlugin has become pretty complete in the last few days. It now 13 | has all the same functionality as the bundled sfPropelPlugin with 14 | symfony 1.1 plus dozens more features a long with the Doctrine DBAL and 15 | ORM. The main features introduced to the symfony framework are 16 | migrations, DQL, behaviors, inheritance and a sprinkle of additional 17 | admin generator features. I have also completely re-ported 18 | sfGuardDoctrinePlugin from sfGuardPlugin so it is in sync with it and 19 | has exactly the same features, nothing more. The removed functionality 20 | will be moved to separate plugins that work with sfGuardDoctrinePlugin. 21 | 22 |
23 | 24 | The source of the Doctrine website can be gotten from svn here 25 | [http://www.phpdoctrine.org/svnweb](http://www.phpdoctrine.org/svnweb) 26 | 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /config/services/orm.php: -------------------------------------------------------------------------------- 1 | services(); 16 | $parameters = $container->parameters(); 17 | 18 | $services->set(Configuration::class) 19 | ->args([['lib/Model', 'lib/Git', 'lib/Docs/RST']]) 20 | ->factory([ORMSetup::class, 'createAttributeMetadataConfiguration']) 21 | ->call('enableNativeLazyObjects', [true]); 22 | 23 | $services->set(Connection::class) 24 | ->args([['driver' => 'pdo_sqlite', 'path' => '%doctrine.website.cache_dir%/doctrine-website.sqlite']]) 25 | ->factory([DriverManager::class, 'getConnection']); 26 | 27 | $services->set(EntityManager::class) 28 | ->args([ 29 | service(Connection::class), 30 | service(Configuration::class), 31 | ]); 32 | 33 | $services->alias(EntityManagerInterface::class, EntityManager::class) 34 | ->public(); 35 | }; 36 | -------------------------------------------------------------------------------- /tests/Projects/GetTotalDownloadsTest.php: -------------------------------------------------------------------------------- 1 | createProject($this->createProjectData(21)); 17 | $project2 = $this->createProject($this->createProjectData(13)); 18 | $project3 = $this->createProject($this->createProjectData(8)); 19 | 20 | $projectRepository = self::createStub(ProjectRepository::class); 21 | $projectRepository->method('findAll') 22 | ->willReturn([$project1, $project2, $project3]); 23 | 24 | $getTotalDownloads = new GetTotalDownloads($projectRepository); 25 | 26 | self::assertSame(42, $getTotalDownloads()); 27 | } 28 | 29 | /** @return array