Awesome q2a theme

Propel

0 like 0 dislike
33 views
Hello. Appeared several questions:
1. Is it possible to separate the model from the base(*Base, *Peer, *Query) that would be located in different directories?

2. If I already have the model in different ways and need to make a change in the structure of the database, after generating (propel-gen) models will stay with methods added or replaced on empty?
(I understand that it is elementary to check, but maybe there are some nuances, flags and so on).

3. The package itself Propel uses its own class autoloader and written without the use of namespaces. Is it possible to carry out the implementation code for the specified namespace? The problem is that Propel includes classes with fairly common names (Criteria, Join, BaseObject etc.)
by | 33 views

3 Answers

0 like 0 dislike
1. I do not know. Theoretically, no matter what is write a script on "RUSCICO" or view the Doc.
2. Changing only the base model
3. Wash the autoloader is not a problem
by
0 like 0 dislike
1. You can rewrite tasks phing'a, but not necessary
2. The user model will not change
3. Namespaces are not needed
by
0 like 0 dislike
    \r
  1. It seems possible, creating its own variant of Assembly (http://www.propelorm.org/cookbook/customizing-build.html).
  2. \r
  3. Answered
  4. \r
  5. In propel has support for namespaces (http://www.propelorm.org/cookbook/namespaces.html). And if there is, the idea have to work and the autoloader. If not, then try solution from Symfony (https://github.com/symfony/ClassLoader). Code sang will not have to change.
  6. \r
by

Related questions

0 like 0 dislike
7 answers
asked Mar 20, 2019 by linux2000
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
asked Mar 28, 2019 by DrNemo
110,608 questions
257,187 answers
0 comments
40,796 users