Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- detect_relations: true
- User:
- actAs:
- Timestampable:
- SoftDelete:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: true
- tableName: user
- columns:
- name:
- type: string(50)
- notnull: true
- email:
- type: string(50)
- notnull: true
- unique: true
- password:
- type: string(50)
- notnull: true
- business_id: integer
- relations:
- Business:
- cascade: [delete]
- Business:
- actAs:
- Timestampable:
- SoftDelete:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: true
- tableName: business
- columns:
- name:
- type: string(50)
- notnull: true
- website: string(100)
- address: string(100)
- $q = Doctrine_Query::create()
- ->delete('Model_User u')
- ->where('u.id = ?', $id);
- $q ->execute();
- $user = Doctrine_Core::getTable('User')->find(1)
- $user->delete();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement