Re: Annotations in PHP7
| From: | Benjamin Eberlei | Date: | Wed, 18 Feb 2015 20:46:20 +0000 |
| Subject: | Re: Annotations in PHP7 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83119@lists.php.net to get a copy of this message | ||
On Wed, Feb 18, 2015 at 9:40 PM, François Laupretre <francois@php.net>
wrote:
> Hi Guilherme,
>
> > De : guilhermeblanco@gmail.com [mailto:guilhermeblanco@gmail.com]
> > <orm(
> > [
> > new OneToOne("Address"),
> > new JoinColumn(default, default, default, default, "CASCADE")
> > ]
> > )>
> > public $address;
>
> Why not :
>
> <orm([
> 'OneToOne' => "Address",
> 'JoinColumns' => [
> [ 'onDelete' => "CASCADE" ]
> ]
> ])>
>
> Can't array keys replace named parameters ?
>
yes they can.
>
> Regards
>
> François
>
>
>