-
Notifications
You must be signed in to change notification settings - Fork 61
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
[part] ORM Table annotation #14
Labels
Comments
your model is not a model!
|
Sorry, copied from wrong file <?php
namespace models;
/**
* @table(pessoas)
*/
class Pessoas
{
/**
* @id
* @column("name"=>"id","nullable"=>false,"dbType"=>"int(11)")
* @validator("id","constraints"=>array("autoinc"=>true))
* */
private $id;
/**
* @column("name"=>"ds_nome","nullable"=>false,"dbType"=>"varchar(100)")
* @validator("length","constraints"=>array("max"=>100,"notNull"=>true))
* */
private $ds_nome; |
I also tried
|
it's |
no i didn't, also tried with same error |
<?php
namespace models;
/**
* @table("pessoas")
*/
class Pessoas
{
Also tried to add option table in AnnotationManager.php returning the TableAnnotation.php as it source and didn't work |
Sorry, it's:
|
OK, It works! How can I update the docs? |
Merged
Found! Docs updated too |
Thanks for the correction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps
Expected Result
Succefull message
Actual Result
Versions
Pessoas model
The text was updated successfully, but these errors were encountered: