Upgrading & What's New in Symfony 6!
Adding Property Types to Entities
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

How could we refactor this old way of defining an entity's property to use PHP attributes so that it can be null at initialization?

/**
 * @var string
 * @ORM\Column(type="string")
 */
private $name;
Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.