-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Could not determine access type for property #1949
Comments
Same here, did you manage to fix it? This is my code: /**
* @var \DateTIme
*
* @ORM\Column(name="created_at", type="datetime", nullable=false)
*/
private $createdAt;
/**
* @var \DateTIme
*
* @ORM\Column(name="updated_at", type="datetime", nullable=true)
*/
private $updatedAt;
function __construct() {
$this->updatedAt = $this->createdAt = new \DateTime();
... No setters but same when I add them. |
@duraki In your case, adding a getter and setter method for the property should solve the issue. |
@xabbuh I've already had getters but when I add setters I'm getting the same result, just as I said. Thanks for the suggestion tho. |
Can one of you create an example application that allows to reproduce the issue? |
@xabbuh yes, I'll need some time but I'll sure ping you back asap |
@javiereguiluz i can replicated the error. The problem is in |
I'm closing this issue because we're starting a new phase in the history of this bundle (see #2059). We've moved it into a new GitHub organization and we need to start from scratch: no past issues, no pending pull requests, etc. I understand if you are angry or disappointed by this, but we really need to "reset" everything in order to reignite the development of this bundle. |
@rampmaster I am facing the same issue, what does "change trait with inheritance" mean? |
i use this trait in an entity named Player
i had created a new Player item with this entity/trait but when i want to save to DB, i got this error:
Could not determine access type for property "createdAt" in class "App\Entity\Player".
The text was updated successfully, but these errors were encountered: