PHPackages                             michael.caruana/hasonefield - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. michael.caruana/hasonefield

ActiveSilverstripe-module

michael.caruana/hasonefield
===========================

Easy to manage has\_one relations with familiar link/unlink feature.

v1.0.1(4y ago)03MITPHPPHP &gt;=5.3.3

Since May 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mikeyc7m/silverstripe-hasonefield)[ Packagist](https://packagist.org/packages/michael.caruana/hasonefield)[ RSS](/packages/michaelcaruana-hasonefield/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

HasOneField
===========

[](#hasonefield)

Easy to manage has\_one relations with familiar link/unlink feature.

Introduction
------------

[](#introduction)

Adds a Has-One type of field to allow you to create, link, unlink, delete, or edit DataObjects in a has\_one relationship. Based on a gridfield, but without the fluff.

- "Create" button takes you to a new page, and from there the parent is updated with the new relation when the new object is saved.
- Gridfield-style "Link Existing" field is used to search and select existing objects, and happens inline/ajax.
- If there already is a relation, clicking on the data or the gridfield-style "Edit" icon take you to the usual edit page.
- Gridfield-style "Unlink" icon happens inline/ajax and writes the parent only.
- Gridfield-style "Delete" icon also happens inline/ajax with the "Are you sure" prompt.

Requirements
------------

[](#requirements)

- Silverstripe 3x.

Installation
------------

[](#installation)

`composer install`

Manipulations
-------------

[](#manipulations)

- Access the internal gridfield using `$gridfield = $field->FieldList()->first();`.
- Set the display fields using `$gridfield->setDisplayFields($someArray);`.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d50ddcea2e633795b67ff0d91ca579087d93c85044b9fd1fedc6c9960c4492fe?d=identicon)[mikeyc7m](/maintainers/mikeyc7m)

---

Top Contributors

[![mikeyc7m](https://avatars.githubusercontent.com/u/6045159?v=4)](https://github.com/mikeyc7m "mikeyc7m (19 commits)")

---

Tags

silverstripegridfieldhas\_one

### Embed Badge

![Health badge](/badges/michaelcaruana-hasonefield/health.svg)

```
[![Health](https://phpackages.com/badges/michaelcaruana-hasonefield/health.svg)](https://phpackages.com/packages/michaelcaruana-hasonefield)
```

###  Alternatives

[symbiote/silverstripe-gridfieldextensions

A collection of useful grid field components

971.8M235](/packages/symbiote-silverstripe-gridfieldextensions)[undefinedoffset/sortablegridfield

Adds drag and drop functionality to Silverstripe's GridField

941.2M50](/packages/undefinedoffset-sortablegridfield)[unclecheese/betterbuttons

Adds new form actions and buttons to GridField detail form for usability enhancements.

85544.9k19](/packages/unclecheese-betterbuttons)[briceburg/silverstripe-pickerfield

GridField based management of has\_one , has\_many , and many\_many relationship selection

2541.2k1](/packages/briceburg-silverstripe-pickerfield)[stevie-mayhew/hasoneedit

Allows editing the fields of a has\_one object directly in the CMS

21225.4k11](/packages/stevie-mayhew-hasoneedit)[silverstripe/gridfieldqueuedexport

Export large data sets from your GridField in the SilverStripe CMS interface through async jobs

10213.1k5](/packages/silverstripe-gridfieldqueuedexport)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
