Re: [RFC] Reflection annotations reader

From: Date: Wed, 09 Jan 2013 12:42:54 +0000
Subject: Re: [RFC] Reflection annotations reader
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Please, no top posting!!!

On Wed, 9 Jan 2013, Vladislav Veselinov wrote:

> Taken from the Doctrine documentation:
> 
> <?php
> class User
> {
>     //...
>     /**
>      * @ManyToMany(targetEntity="Group")
>      * @JoinTable(name="User_Group",
>      *      joinColumns={@JoinColumn(name="User_id",
> referencedColumnName="id")},
>      *      inverseJoinColumns={@JoinColumn(name="Group_id",
> referencedColumnName="id")}
>      * )
>      */
>     private $groups;
>     //...
> }
> 
> Not that I'm a fan of it, but it provides a valid usecase. I'm sure
> there are more.

Maybe valid, but sticking this into core-syntax seems mental.

cheers,
Derick
-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine


Thread (78 messages)

« previous php.internals (#64736) next »