All pastes #966060 Raw Edit

Something

public php v1 · immutable
·published 2008-04-01 13:25 UTC
rendered paste body
<?phpclass Person {    /**     * @is StringField(max_length = 100)     */    public $first_name = '';    /**     * @is StringField(max_length = 100)     */    public $last_name = '';    /**     * @is CompositeField(first_name, ' ', last_name)     */    public $name;}class EmailAddress {    /**     * @is ForeignKey(Person)     */    public $person;    /**     * @is EmailField(required = true)     */    public $email;}$repo = new Argil_Repository($config);$person = $repo->find('Person')->name__like('Travis S%');$person instanceof Argil_Model_ContainerList;