Skip to content

phpVisibility in propel model generation

Compare
Choose a tag to compare
@yannickl88 yannickl88 released this 21 Apr 08:58
· 25 commits to 1.1 since this release

With this release we added a special feature to the propel generation where we can set the visibility of the generated methods for a column. This allows for a more easy migration to another model or interface.

You can use this feature as follows:

database:
  table:
    field:
      type:          INTEGER
      phpVisibility: protected # visibility of generated methods

By default the visibility is public, but when specified you can change this. This will influence the getter (i.e., getField) and the setter (i.e., setField($v)) for a field in your schema.