Skip to content

Commit

Permalink
Update README.md - Shorten intro
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixelshaped authored Jun 4, 2024
1 parent 82a8212 commit 095d388
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@ class CustomerDTO
{
public function __construct($name, $email, $city, $value = null){ /* ... */ }
}
```

Doctrine can execute a query that produces an array `array<CustomerDTO>`:

```php
<?php
$query = $em->createQuery('SELECT NEW CustomerDTO(c.name, e.email, a.city) FROM Customer c JOIN c.email e JOIN c.address a');
$users = $query->getResult(); // array<CustomerDTO>
```
Expand Down

0 comments on commit 095d388

Please sign in to comment.