Skip to content

Document property configuration settings #9

Description

@dan-bowen

Hello,

I'm having trouble tracking down all the property configuration settings. As best I can tell here are the keys/values you can set.

class TestModel extends \Modler\Model
{
    protected $properties = array(
        'test' => array(
            'description' => 'Test Property 1'
            'type'        => 'varchar',       // what other values are allowed for type?
            'required'    => true|false,      // what other validation is built in?
            'guarded'     => true|false,
            ... // what other keys are built-in?
        )
    );
}

I was hoping the REAME could be updated too describe all the possible keys, values and meanings.

I also found a discrepancy in the README that says guard is used for guarding properties, but the code is actually using guarded. https://github.com/enygma/modler/blob/master/src/Modler/Model.php#L62

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions