創建getter和setter方法我有類用戶likr這如何學說產生:實體的symfony
class user implements UserInterface {
protected id ,
protected username;
那麼我
class student extends user {
protected id ,
protected rollno;
現在,當我運行這個
php app/console doctrine:generate:entities myBundle
然後propery用戶名插入班學生。
我想知道,這是正確的或它的錯誤。因爲那時有什麼用,如果我的姑娘是要與所有的東西
但他們解決了什麼目的。我已經從我的班級中刪除了所有人,並且工作正常。那些屬性是否需要? – user825904 2012-07-13 07:38:49