From 7390bd82d2243d4a02cba1e3dc77992cc2385ca0 Mon Sep 17 00:00:00 2001 From: marsh-circle <marsh-circle@users.noreply.github.com> Date: Tue, 17 Oct 2017 16:49:26 +0100 Subject: [PATCH] change path in Entity creation w/flow I'm not sure if this has only come about because of my ineptitude (i.e. whether an Entity would always have the same name as the extension), but I found that I couldn't find the files referred to because my Entity and my Extension had different names. Would that be bad practice on my part? (it would be good to know as I'm very new to coding) Either way, I think this may be more accurate... rest is up to you. Cheers, M. --- docs/extensions/civix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extensions/civix.md b/docs/extensions/civix.md index 52be9e40..a85ccb1b 100644 --- a/docs/extensions/civix.md +++ b/docs/extensions/civix.md @@ -158,7 +158,7 @@ If you want your extension to store data in the database, then you will need to * *Prior to CiviCRM 4.7.12, you would instead run `php ./GenCode.php` from the `xml` folder.* - 1. Copy the DAO file `<civiroot>/CRM/MyEntity/DAO/MyEntity.php` into your extension at `CRM/MyEntity/DAO/MyEntity.php`. + 1. Copy the DAO file `<civiroot>/CRM/MyExtension/DAO/MyEntity.php` into your extension at `CRM/MyExtension/DAO/MyEntity.php`. 1. Within your extension, create an `sql` directory and create two empty files within it: `auto_install.sql` and `auto_uninstall.sql`. -- GitLab