Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing defaults to hasOne (SQL) #216

Closed
romaninsh opened this issue Feb 10, 2017 · 4 comments
Closed

Passing defaults to hasOne (SQL) #216

romaninsh opened this issue Feb 10, 2017 · 4 comments
Assignees
Labels

Comments

@romaninsh
Copy link
Member

romaninsh commented Feb 10, 2017

$this->j_head->hasOne('vat_period_id', ['smbo/VatPeriod', 'caption'=>'VAT Period'])->addTitle();
var_dump($this->getElement('vat_period_id')->caption);

The above code outputs NULL but caption property should have been set for the field. This issue needs a proper test and fix.

@romaninsh romaninsh changed the title passing defaults to hasone Passing defaults to hasOne (SQL) Feb 10, 2017
@DarkSide666 DarkSide666 self-assigned this Feb 10, 2017
@romaninsh
Copy link
Member Author

there are several other methods that needs to be looked at, btw.

@romaninsh
Copy link
Member Author

This might be useful: http://agile-ui.readthedocs.io/en/latest/core.html#seed

@DarkSide666
Copy link
Member

DarkSide666 commented Feb 10, 2017

yeah, I read about seeds yesterday and now I think I understand UI constructor parameters at last :)

@romaninsh
Copy link
Member Author

not sure if relevant, but we introduced 'hasTitle'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants