public function orCreate($args)
    {
        $query = clone $this->_queryForWrite();

        if(!$query->count())
            $this->_schema->newInstance(func_get_args())->save();

        return $this;
    }
public function orCreate($args)
    {
        $query = clone $this->_queryForWrite();

        if(!$query->count())
            $this->_schema->newInstance(func_get_args())->save();

        return $this;
    }
public function orCreate ( $ args ) { $ query = clone $ this -> _queryForWrite ( ) ; if ( ! $ query -> count ( ) ) $ this -> _schema -> newInstance ( func_get_args ( ) ) -> save ( ) ; return $ this ; }
Creates the passed params as a domain object if there are no
results in the collection.
@param $args array an array to be passed to the constructor via call_user_func_array
@chainable
Creates the passed params as a domain object if there are no results in the collection .