Closed kjusupov closed 11 years ago
@kjusupov would you please check if code from master
is any better?
@samdark nope, same behaviour... The moment I put "ref_" prefix it starts working, otherwise it cannot detect the relations
But, if I name the table as "ref_client" (with the same structure), than it works just fine...
This is because when you give prefix in gii it will only check tables that have the prefix. prefix is ment to be used if you have multiple tables in one db that are not related. If all your tables are relevant, just do not enter prefix in gii.
Preview models/Country.php shows as below (I expected @property Client[] $clients" to be included as well.
But, if I name the table as "ref_client" (with the same structure), than it works just fine...
Is this how Gii was supposed to work?
My tables:
TABLE: ref_country
TABLE: ref_region
TABLE: ref_bank
TABLE: client