title: How to setup one-to-one relation in yii2 and also other functionalities mentioned below
body: <p>One User has One Profile(obviously). How do I design the logic behind this?</p>
  
  <ul>
  <li>I have two tables namely "tbl_users" and "tbl_profile".</li>
  <li>When I open the profile page, I should be able to see the "Create
  Profile" button only if the profile does not exist.</li>
  <li>Once the profile has been created by the user, "Create Profile"
  button should not appear next time.</li>
  <li>Please describe me in detail how the columns of both tables are linked and what changes I have to include in both the models and other changes too.</li>
  </ul>
  
  <p>Thank you.</p>