code/Core/Extensions/DataObject.php
public function firstOrCreate($filter = [], $additionalData = [], $write = true)
    {
        return $this->owner->firstOrMake($filter, $additionalData, $write);
    }
public function firstOrCreate($filter = [], $additionalData = [], $write = true)
    {
        return $this->owner->firstOrMake($filter, $additionalData, $write);
    }
public function firstOrCreate ( $ filter = [ ] , $ additionalData = [ ] , $ write = true ) { return $ this -> owner -> firstOrMake ( $ filter , $ additionalData , $ write ) ; }
Alias of ->firstOrMake

@param array $filter
@param array $additionalData
@param bool|true $write
@return static
Alias of - > firstOrMake