title: Managing has_one relation inline in SilverStripe
body: <p>I am wondering if it is possible to directly edit values of a has_one relationship in SilverStripe.</p>
  
  <p><strong>For example:</strong></p>
  
  <p><code>Person</code> (extension of <code>SiteTree</code>) has one <code>Job</code> (extension of <code>DataObject</code>) where <code>Job</code> has the db fields of title, salary, location etc.</p>
  
  <p>Is it possible in the CMS to place a form in a new tab to edit the values of <code>Job</code> form the <code>Person</code> page? So all of the form fields from the <code>Job</code> DataObject are placed on the <code>Person</code> page and will save to the <code>Job</code> table when I hit save on the <code>Person</code> page?</p>
  
  <p>I can get this to work with inline gridfield editing (thanks to the <a href="https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/blob/master/code/GridFieldEditableColumns.php" rel="nofollow">editable columns class in gridfieldextensions</a>) but I believe this requires a has_many / many_many relationship? It also is not suitable for adding images and managing objects that have a large number of fields.</p>
  
  <p>I hope that make sense. Let me know if you need more clarification.</p>
  
  <p><strong>EDIT:</strong> I found <a href="https://github.com/burnbright/silverstripe-hasonefield" rel="nofollow">this hasonefield module</a> which is very out of date but does 80% of what I am after, it would be amazing if it didn't take you off the page though and you could edit the fields within the parent page (<code>Person</code>).</p>