Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DCOM-253: Support use statements for annotations property type #86

Closed
guilhermeblanco opened this issue Mar 27, 2016 · 1 comment
Closed

Comments

@guilhermeblanco
Copy link
Member

From @doctrinebot on September 20, 2014 12:23

Jira issue originally created by user enumag:

For example in doctrine/orm there is this annotation class:

namespace Doctrine\ORM\Mapping;

/****
 * @Annotation
 * @Target({"PROPERTY","ANNOTATION"})
 */
final class JoinTable implements Annotation
{
    /****
     * @var string
     */
    public $name;

    /****
     * @var string
     */
    public $schema;

    /****
     * @var array<\Doctrine\ORM\Mapping\JoinColumn>
     */
    public $joinColumns = array();

    /****
     * @var array<\Doctrine\ORM\Mapping\JoinColumn>
     */
    public $inverseJoinColumns = array();
}

Note the @var array<\Doctrine\ORM\Mapping\JoinColumn>. In my opinion @var array<JoinColumn> should be enough here as JoinColumn is in the same namespace. Use statements should also be supported.

Copied from original issue: doctrine/common#562

@alcaeus
Copy link
Member

alcaeus commented May 13, 2021

Closing. If anyone is interested in working on this for 1.x, please let us know. Thanks!

@alcaeus alcaeus closed this as completed May 13, 2021
@alcaeus alcaeus removed this from the 2.0.0 milestone May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants