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

the foreign key does not appear at view files and i suggest solution #13

Open
mosoahmed opened this issue Mar 19, 2014 · 0 comments
Open

Comments

@mosoahmed
Copy link

you need to add the foreign key to model creating as this example

Product BelongsTo Category name:string category_id:integer
then add this next line to ignore the key that have " anyword_id" during creating migration file

in the start.php file at line num 601 after the foreach which build the sechma
you can add this code after foreach line

              if (strpos($field, '_id') !== false){
               continue; 
           }

it something so small but you know being lazy make us try to do it all auto :D

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

No branches or pull requests

1 participant