Skip to content

Commit

Permalink
ENH Add Nice to DBField
Browse files Browse the repository at this point in the history
Fixes #11169

(cherry picked from commit 2c35b8d)
  • Loading branch information
lekoala committed Mar 27, 2024
1 parent 1c2e1f8 commit b167f47
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ORM/FieldType/DBField.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,14 @@ public function CDATA()
return $this->XML();
}

/**
* @return string
*/
public function Nice()
{
return $this->XML();
}

/**
* Returns the value to be set in the database to blank this field.
* Usually it's a choice between null, 0, and ''
Expand Down

1 comment on commit b167f47

@lekoala
Copy link
Contributor Author

@lekoala lekoala commented on b167f47 Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just realized it should be @return ?string given sometimes we return null

Please sign in to comment.