-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate:entity should provide empty DAO along with empty BAO
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/CRM/CivixBundle/Resources/views/Code/entity-dao.php.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
echo "<?php\n"; | ||
$_namespace = preg_replace(':/:', '_', $namespace); | ||
?> | ||
use <?php echo $_namespace ?>_ExtensionUtil as E; | ||
|
||
/** | ||
* DAOs provide an OOP-style facade for reading and writing database records. | ||
* | ||
* DAOs are a primary source for metadata in several versions of CiviCRM (<5.75) | ||
* and are required for some subsystems (such as APIv3). | ||
* | ||
* This stub provides compatibility. It is not intended to be modified in a | ||
* substantive way. However, you may add comments and annotations. | ||
*/ | ||
class <?php echo $daoClassName ?> extends CRM_Core_DAO { | ||
|
||
} |