DDC-3157: [GH-1052] [DDC-3087] Add readonly attribute to Field ORM Mapping to avoid generating a setter #3936

doctrinebot opened this Issue Jun 7, 2014 · 2 comments

2 participants


Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of cstea:

Url: #1052


The change allows one to enter a field attribute called "readonly". What this does is when using doctrine:generate:entities, only a getter is generated, setter is omitted.

Example use on a created field that uses Timestampable and should not have a setter:
* @var /DateTime $createdAt
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime", readonly=true)
private $createdAt;


Comment created by @doctrinebot:

A related Github Pull-Request [GH-1052] was closed:


Issue was closed with resolution "Won't Fix"

@Ocramius Ocramius was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment