-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relations #143
Relations #143
Conversation
@@ -1,6 +1,5 @@ | |||
parameters: | |||
# Sql relations classes | |||
ongr_connections.sql_relations.simple_relation.class: ONGR\ConnectionsBundle\Sync\Extractor\Relation\SimpleSqlRelation | |||
ongr_connections.sql_relations.composed_relation.class: ONGR\ConnectionsBundle\Sync\Extractor\Relation\ComposedSqlRelation | |||
ongr_connections.sql_relations.sql_relation.class: ONGR\ConnectionsBundle\Sync\Extractor\Relation\SqlRelation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sql_relations.sql_relation ? we can do better than that :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sql_relations.general_relation
sql_relations.relation
.. maybe somebody has even better ideas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try to break away from sql_relations in general. What is the function of a sql_relations.sql_relation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ongr_connections.sql_relations.sql_relation.class
is used by relations example https://github.com/ongr-io/ConnectionsBundle/pull/143/files#diff-0ecea2bd068f83cc8f0d36e45f499f83R33
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a bit of discussion we (@GrandLTU and myself) have decided that the most fitting name would be extraction_descriptor
, since it is a descriptive class used by extractor
to extract relevant data (an extraction
). What used to be an relation collection
would subsequently become extraction collection
or simply extractions
. What is your opinion about this, @trylika?
@@ -17,7 +17,7 @@ | |||
/** | |||
* Helper base class for adding MySQL parameters to the given definition. | |||
*/ | |||
abstract class AbstractMySqlPass | |||
abstract class AbstractExtractorDescriptorPass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, not to nitpick, but maybe AbstractExtractionDescriptorPass
?
Descriptors | ||
=========== | ||
|
||
Sql descriptors are special classes that tell extractor which fields/tables to watch for changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extraction descriptors ... :)
} elseif (empty($statements)) { | ||
throw new \LogicException( | ||
'Missing relations or no document type set in descriptor "' | ||
. $descriptor->getName() . '"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awsum
closes #106