Skip to content

Commit

Permalink
New version of Doctrine website
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrine committed Aug 21, 2023
1 parent a5f53cd commit 84a88c4
Show file tree
Hide file tree
Showing 2,440 changed files with 13,438 additions and 13,144 deletions.
350 changes: 350 additions & 0 deletions 2023/08/21/doctrine-orm-team-meetup.html

Large diffs are not rendered by default.

64 changes: 13 additions & 51 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@
<title><![CDATA[Doctrine]]></title>
<link href="https://www.doctrine-project.org/atom.xml" rel="self" />
<link href="https://www.doctrine-project.org/" />
<updated>2023-08-20T21:04:06-04:00</updated>
<updated>2023-08-21T08:41:51-04:00</updated>
<id>https://www.doctrine-project.org/</id>

<entry>
<title type="html"><![CDATA[Doctrine ORM Team Meetup in Bonn, Germany]]></title>
<link href="https://www.doctrine-project.org/2023/08/21/doctrine-orm-team-meetup.html"/>
<updated>2023-08-21T00:00:00-04:00</updated>
<id>https://www.doctrine-project.org/2023/08/21/doctrine-orm-team-meetup.html</id>
<content type="html"><![CDATA[<p>We are organizing a Doctrine ORM Core Team Meetup in Bonn, Germany from Monday,
9.10.2023 to Wednesday, 11.10.2023 at the offices of one of our primary
sponsors Tideways GmbH.</p>
<p>The goal is to get the current team together, discuss and work on the missing
pieces for the long-awaited Doctrine ORM 3.0 release that is planned for later
this year.</p>]]></content>
</entry>
<entry>
<title type="html"><![CDATA[From annotations to attributes]]></title>
<link href="https://www.doctrine-project.org/2022/11/04/annotations-to-attributes.html"/>
Expand Down Expand Up @@ -718,55 +730,5 @@ version 3.0.</p>
<p>Doctrine ORM 2.9 now supports and fully validates against Doctrine Coding
Standard version 9.0+. This greatly improves automatic pull request checks as
all new violations in a PR get caught and inlined into the PR as comments.</p>]]></content>
</entry>
<entry>
<title type="html"><![CDATA[New Release: Doctrine DBAL 2.13.1 and 3.1.0 with important Forward Compatibility fix]]></title>
<link href="https://www.doctrine-project.org/2021/04/19/dbal-2.13.1-3.1.0.html"/>
<updated>2021-04-19T00:00:00-04:00</updated>
<id>https://www.doctrine-project.org/2021/04/19/dbal-2.13.1-3.1.0.html</id>
<content type="html"><![CDATA[<p>Last month <a href="https://www.doctrine-project.org/2021/03/29/dbal-2.13.html">we released DBAL
2.13.0</a> as an
important push for the ecosystem towards DBAL 3 with an extensive deprecation
and forward compatibility layer.</p>
<p>We made a few mistakes, given that the forward compatibility layer is quite complex.
As such we have now released Doctrine DBAL 2.13.1 and 3.1.0 with two new APIs
that improve the forward compatiblity.</p>
<p>The problem lies in <code>Statement::execute()</code>: 2.13.0 would return a <code>bool</code> and
3.0.0 would return a <code>Result</code> from this method. This kind of API change cannot
be handled with a forward compatibility.</p>
<p>As such we introduced two new APIs on <code>Statement</code> that replace <code>execute()</code>.
When the old code was:</p>
<pre><code class="language-php">$statement = $connection-&gt;prepare('SELECT * FROM tbl WHERE col = ?');
$statement-&gt;execute();
$rows = $statement-&gt;fetchAll();</code></pre>
<p>Then the new code is now:</p>
<pre><code class="language-php">$statement = $connection-&gt;prepare('SELECT * FROM tbl WHERE col = ?');
$result = $statement-&gt;executeQuery();
$rows = $result-&gt;fetchAllAssociative();</code></pre>
<p>The DBAL 2.13 forward compatiblity layer supports both versions of all code and
returns a Statement/Result hybrid that has all the APIs that the DBAL Statement
had up until version 2.12. This way you can move at your own pace from the old
to the new API in your code.</p>
<p>Thank you again to <a href="https://github.com/mdumoulin">mdumoulin</a> for the work on
improving the forward compatiblity and to <a href="https://twitter.com/srgmrzv">Sergei Morozov</a>
for the thorough reviews and comments.</p>
<p>Again I want to highlight the Runtime Deprecations library that we introduced
to support this migration. You can integrate this with your log stack during
development and testing:</p>
<pre><code class="language-php">use Doctrine\Deprecations\Deprecation;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$log = new Logger('doctrine');
$log-&gt;pushHandler(new StreamHandler('deprecations.log', Logger::INFO));
Deprecation::enableWithPsrLogger($log);</code></pre>
<p>Or alternatively using PHP's global error handler:</p>
<pre><code class="language-php">Deprecation::enableWithTriggerError();</code></pre>
<p>See the <a href="https://www.doctrine-project.org/2021/03/29/dbal-2.13.html">2.13 blog
post</a> for more
information about the migration to DBAL 3 and strategy recommendations.</p>]]></content>
</entry>
</feed>
49 changes: 27 additions & 22 deletions blog/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@
<main role="main" class="container-wrapper container">
<h1>Blog Archive</h1>

<date>2023-08-21</date> &nbsp; <a href="/2023/08/21/doctrine-orm-team-meetup.html">Doctrine ORM Team Meetup in Bonn, Germany</a>

by
<a href="mailto:[email protected]">Benjamin Eberlei</a>
<br/>
<date>2022-11-04</date> &nbsp; <a href="/2022/11/04/annotations-to-attributes.html">From annotations to attributes</a>

by
Expand Down Expand Up @@ -347,12 +352,12 @@ <h1>Blog Archive</h1>
by
<a href="mailto:[email protected]">Gianluca Arbezzano</a>
<br/>
<date>2016-01-05</date> &nbsp; <a href="/2016/01/05/orm-2-5-4.html">Doctrine ORM 2.5.4 Released</a>
<date>2016-01-05</date> &nbsp; <a href="/2016/01/05/dbal-2-5-4-and-2-4-5.html">Doctrine DBAL 2.5.4 and 2.4.5 Released</a>

by
<a href="mailto:[email protected]">Marco Pivetta</a>
<br/>
<date>2016-01-05</date> &nbsp; <a href="/2016/01/05/dbal-2-5-4-and-2-4-5.html">Doctrine DBAL 2.5.4 and 2.4.5 Released</a>
<date>2016-01-05</date> &nbsp; <a href="/2016/01/05/orm-2-5-4.html">Doctrine ORM 2.5.4 Released</a>

by
<a href="mailto:[email protected]">Marco Pivetta</a>
Expand Down Expand Up @@ -475,12 +480,12 @@ <h1>Blog Archive</h1>
by
<a href="mailto:[email protected]">Marco Pivetta</a>
<br/>
<date>2015-04-02</date> &nbsp; <a href="/2015/04/02/common-2-5-0.html">Doctrine Common 2.5.0 Release</a>
<date>2015-04-02</date> &nbsp; <a href="/2015/04/02/orm-2-5-0.html">Doctrine ORM 2.5.0 Release</a>

by
<a href="mailto:[email protected]">Marco Pivetta</a>
<br/>
<date>2015-04-02</date> &nbsp; <a href="/2015/04/02/orm-2-5-0.html">Doctrine ORM 2.5.0 Release</a>
<date>2015-04-02</date> &nbsp; <a href="/2015/04/02/common-2-5-0.html">Doctrine Common 2.5.0 Release</a>

by
<a href="mailto:[email protected]">Marco Pivetta</a>
Expand Down Expand Up @@ -586,22 +591,22 @@ <h1>Blog Archive</h1>
<date>2014-09-12</date> &nbsp; <a href="/2014/09/12/dbal-250rc2.html">Doctrine DBAL 2.5 RC2</a>

<br/>
<date>2014-09-11</date> &nbsp; <a href="/2014/09/11/orm-244.html">ORM 2.4.4 released</a>
<date>2014-09-11</date> &nbsp; <a href="/2014/09/11/instantiator-1-0-0.html">Doctrine Instantiator 1.0.0 released</a>

by
<a href="mailto:[email protected]">Marco Pivetta</a>
<br/>
<date>2014-09-11</date> &nbsp; <a href="/2014/09/11/instantiator-1-0-0.html">Doctrine Instantiator 1.0.0 released</a>
<date>2014-09-11</date> &nbsp; <a href="/2014/09/11/orm-244.html">ORM 2.4.4 released</a>

by
<a href="mailto:[email protected]">Marco Pivetta</a>
<br/>
<date>2014-02-21</date> &nbsp; <a href="/2014/02/21/doctrine_2_5_beta3.html">Doctrine DBAL 2.5 BETA3</a>
<date>2014-02-21</date> &nbsp; <a href="/2014/02/21/security_in_doctrine.html">Security in Doctrine</a>

by
default
<br/>
<date>2014-02-21</date> &nbsp; <a href="/2014/02/21/security_in_doctrine.html">Security in Doctrine</a>
<date>2014-02-21</date> &nbsp; <a href="/2014/02/21/doctrine_2_5_beta3.html">Doctrine DBAL 2.5 BETA3</a>

by
default
Expand Down Expand Up @@ -636,22 +641,22 @@ <h1>Blog Archive</h1>
by
Benjamin Eberlei
<br/>
<date>2013-05-11</date> &nbsp; <a href="/2013/05/11/doctrine-2-4-beta2.html">Doctrine 2.4 Beta2 released</a>
<date>2013-05-11</date> &nbsp; <a href="/2013/05/11/doctrine-2-3-4.html">Doctrine 2.3.4 released</a>

by
Benjamin Eberlei
<br/>
<date>2013-05-11</date> &nbsp; <a href="/2013/05/11/doctrine-2-3-4.html">Doctrine 2.3.4 released</a>
<date>2013-05-11</date> &nbsp; <a href="/2013/05/11/doctrine-2-4-beta2.html">Doctrine 2.4 Beta2 released</a>

by
Benjamin Eberlei
<br/>
<date>2013-03-24</date> &nbsp; <a href="/2013/03/24/doctrine-2-3-3.html">Doctrine 2.3.3 released</a>
<date>2013-03-24</date> &nbsp; <a href="/2013/03/24/doctrine-2-4-beta.html">Doctrine 2.4 Beta1 released</a>

by
Benjamin Eberlei
<br/>
<date>2013-03-24</date> &nbsp; <a href="/2013/03/24/doctrine-2-4-beta.html">Doctrine 2.4 Beta1 released</a>
<date>2013-03-24</date> &nbsp; <a href="/2013/03/24/doctrine-2-3-3.html">Doctrine 2.3.3 released</a>

by
Benjamin Eberlei
Expand Down Expand Up @@ -1221,22 +1226,22 @@ <h1>Blog Archive</h1>
by
jwage
<br/>
<date>2009-06-21</date> &nbsp; <a href="/2009/06/21/doctrine-future-roadmap.html">Doctrine Future Roadmap</a>
<date>2009-06-21</date> &nbsp; <a href="/2009/06/21/website-updates.html">Website Updates</a>

by
jwage
<br/>
<date>2009-06-21</date> &nbsp; <a href="/2009/06/21/website-updates.html">Website Updates</a>
<date>2009-06-21</date> &nbsp; <a href="/2009/06/21/doctrine-future-roadmap.html">Doctrine Future Roadmap</a>

by
jwage
<br/>
<date>2009-06-19</date> &nbsp; <a href="/2009/06/19/cross-database-joins.html">Cross Database Joins</a>
<date>2009-06-19</date> &nbsp; <a href="/2009/06/19/using-views-with-doctrine.html">Using Views with Doctrine</a>

by
jwage
<br/>
<date>2009-06-19</date> &nbsp; <a href="/2009/06/19/using-views-with-doctrine.html">Using Views with Doctrine</a>
<date>2009-06-19</date> &nbsp; <a href="/2009/06/19/cross-database-joins.html">Cross Database Joins</a>

by
jwage
Expand All @@ -1251,12 +1256,12 @@ <h1>Blog Archive</h1>
by
jwage
<br/>
<date>2009-06-15</date> &nbsp; <a href="/2009/06/15/doctrine-1-0-10-and-1-1-2-released.html">Doctrine 1.0.10 and 1.1.2 Released</a>
<date>2009-06-15</date> &nbsp; <a href="/2009/06/15/sensio-labs-training-sessions.html">Sensio Labs Training Sessions</a>

by
jwage
<br/>
<date>2009-06-15</date> &nbsp; <a href="/2009/06/15/sensio-labs-training-sessions.html">Sensio Labs Training Sessions</a>
<date>2009-06-15</date> &nbsp; <a href="/2009/06/15/doctrine-1-0-10-and-1-1-2-released.html">Doctrine 1.0.10 and 1.1.2 Released</a>

by
jwage
Expand Down Expand Up @@ -1406,12 +1411,12 @@ <h1>Blog Archive</h1>
by
romanb
<br/>
<date>2008-10-02</date> &nbsp; <a href="/2008/10/02/first-symfony-1-1-workshop-in-atlanta-usa.html">First symfony 1.1 workshop in Atlanta, USA</a>
<date>2008-10-02</date> &nbsp; <a href="/2008/10/02/doctrine-1-1-development-begins.html">Doctrine 1.1 Development Begins</a>

by
jwage
<br/>
<date>2008-10-02</date> &nbsp; <a href="/2008/10/02/doctrine-1-1-development-begins.html">Doctrine 1.1 Development Begins</a>
<date>2008-10-02</date> &nbsp; <a href="/2008/10/02/first-symfony-1-1-workshop-in-atlanta-usa.html">First symfony 1.1 workshop in Atlanta, USA</a>

by
jwage
Expand Down Expand Up @@ -1451,12 +1456,12 @@ <h1>Blog Archive</h1>
by
jwage
<br/>
<date>2008-08-27</date> &nbsp; <a href="/2008/08/27/moving-quickly.html">Moving Quickly</a>
<date>2008-08-27</date> &nbsp; <a href="/2008/08/27/release-candidate-2-available.html">Release Candidate 2 Available</a>

by
jwage
<br/>
<date>2008-08-27</date> &nbsp; <a href="/2008/08/27/release-candidate-2-available.html">Release Candidate 2 Available</a>
<date>2008-08-27</date> &nbsp; <a href="/2008/08/27/moving-quickly.html">Moving Quickly</a>

by
jwage
Expand Down
82 changes: 22 additions & 60 deletions blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,28 @@

<main role="main" class="container-wrapper container">
<article>
<header>
<h2><a href="/2023/08/21/doctrine-orm-team-meetup.html">Doctrine ORM Team Meetup in Bonn, Germany</a></h2>
</header>

<p class="lead">
Posted on <date>August 21, 2023</date>
by
<a href="mailto:[email protected]">Benjamin Eberlei</a>
</p>

<hr />

<div>
<p>We are organizing a Doctrine ORM Core Team Meetup in Bonn, Germany from Monday,
9.10.2023 to Wednesday, 11.10.2023 at the offices of one of our primary
sponsors Tideways GmbH.</p>
<p>The goal is to get the current team together, discuss and work on the missing
pieces for the long-awaited Doctrine ORM 3.0 release that is planned for later
this year.</p>
</div>
</article>
<article>
<header>
<h2><a href="/2022/11/04/annotations-to-attributes.html">From annotations to attributes</a></h2>
</header>
Expand Down Expand Up @@ -1000,66 +1022,6 @@ <h2>Coding Standard Support</h2>
all new violations in a PR get caught and inlined into the PR as comments.</p>
</div>
</article>
<article>
<header>
<h2><a href="/2021/04/19/dbal-2.13.1-3.1.0.html">New Release: Doctrine DBAL 2.13.1 and 3.1.0 with important Forward Compatibility fix</a></h2>
</header>

<p class="lead">
Posted on <date>April 19, 2021</date>
by
<a href="mailto:[email protected]">Benjamin Eberlei</a>
</p>

<hr />

<div>
<p>Last month <a href="https://www.doctrine-project.org/2021/03/29/dbal-2.13.html">we released DBAL
2.13.0</a> as an
important push for the ecosystem towards DBAL 3 with an extensive deprecation
and forward compatibility layer.</p>
<p>We made a few mistakes, given that the forward compatibility layer is quite complex.
As such we have now released Doctrine DBAL 2.13.1 and 3.1.0 with two new APIs
that improve the forward compatiblity.</p>
<p>The problem lies in <code>Statement::execute()</code>: 2.13.0 would return a <code>bool</code> and
3.0.0 would return a <code>Result</code> from this method. This kind of API change cannot
be handled with a forward compatibility.</p>
<p>As such we introduced two new APIs on <code>Statement</code> that replace <code>execute()</code>.
When the old code was:</p>
<pre><code class="language-php">$statement = $connection-&gt;prepare('SELECT * FROM tbl WHERE col = ?');
$statement-&gt;execute();

$rows = $statement-&gt;fetchAll();</code></pre>
<p>Then the new code is now:</p>
<pre><code class="language-php">$statement = $connection-&gt;prepare('SELECT * FROM tbl WHERE col = ?');
$result = $statement-&gt;executeQuery();

$rows = $result-&gt;fetchAllAssociative();</code></pre>
<p>The DBAL 2.13 forward compatiblity layer supports both versions of all code and
returns a Statement/Result hybrid that has all the APIs that the DBAL Statement
had up until version 2.12. This way you can move at your own pace from the old
to the new API in your code.</p>
<p>Thank you again to <a href="https://github.com/mdumoulin">mdumoulin</a> for the work on
improving the forward compatiblity and to <a href="https://twitter.com/srgmrzv">Sergei Morozov</a>
for the thorough reviews and comments.</p>
<p>Again I want to highlight the Runtime Deprecations library that we introduced
to support this migration. You can integrate this with your log stack during
development and testing:</p>
<pre><code class="language-php">use Doctrine\Deprecations\Deprecation;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;

$log = new Logger('doctrine');
$log-&gt;pushHandler(new StreamHandler('deprecations.log', Logger::INFO));

Deprecation::enableWithPsrLogger($log);</code></pre>
<p>Or alternatively using PHP's global error handler:</p>
<pre><code class="language-php">Deprecation::enableWithTriggerError();</code></pre>
<p>See the <a href="https://www.doctrine-project.org/2021/03/29/dbal-2.13.html">2.13 blog
post</a> for more
information about the migration to DBAL 3 and strategy recommendations.</p>
</div>
</article>

<a href="/blog/archive.html" class="btn btn-primary">View Blog Archive</a>
</main>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ <h1 class="display-4">Doctrine</h1>
<i class="fas fa-download text-dark mr-2"></i>
</td>
<td>
<p>Doctrine has been downloaded a total of <strong>4,363,490,099</strong> times!</p>
<p>Doctrine has been downloaded a total of <strong>4,364,429,019</strong> times!</p>
</td>
</tr>
</table>
Expand Down Expand Up @@ -267,6 +267,7 @@ <h5 class="card-header">Why use Doctrine?</h5>
<div class="card mb-4">
<h5 class="card-header">Latest Blog Posts</h5>
<ul class="list-group list-group-flush">
<li class="list-group-item"><a href="https://www.doctrine-project.org/2023/08/21/doctrine-orm-team-meetup.html">Doctrine ORM Team Meetup in Bonn, Germany</a></li>
<li class="list-group-item"><a href="https://www.doctrine-project.org/2022/11/04/annotations-to-attributes.html">From annotations to attributes</a></li>
<li class="list-group-item"><a href="https://www.doctrine-project.org/2022/08/06/dbal-3.4.0.html">New Release: Doctrine DBAL 3.4.0</a></li>
<li class="list-group-item"><a href="https://www.doctrine-project.org/2022/03/24/opencollective.html">On Doctrine Sponsoring with the help of OpenCollective</a></li>
Expand All @@ -276,7 +277,6 @@ <h5 class="card-header">Latest Blog Posts</h5>
<li class="list-group-item"><a href="https://www.doctrine-project.org/2021/11/26/dbal-3.2.0.html">New Release: Doctrine DBAL 3.2.0</a></li>
<li class="list-group-item"><a href="https://www.doctrine-project.org/2021/11/11/dbal3-vulnerability-fixed.html">DBAL 3 SQL Injection Security Vulnerability fixed (CVE-2021-43608)</a></li>
<li class="list-group-item"><a href="https://www.doctrine-project.org/2021/05/24/orm2.9.html">New Release: Doctrine ORM 2.9 with Attributes, Typed Properties, more</a></li>
<li class="list-group-item"><a href="https://www.doctrine-project.org/2021/04/19/dbal-2.13.1-3.1.0.html">New Release: Doctrine DBAL 2.13.1 and 3.1.0 with important Forward Compatibility fix</a></li>
</ul>
</div>
</div>
Expand Down
Loading

0 comments on commit 84a88c4

Please sign in to comment.